From 251cf074c767852adb305cbf0367297ef5524e4a Mon Sep 17 00:00:00 2001 From: egelhaus <156946629+egelhaus@users.noreply.github.com> Date: Tue, 18 Mar 2025 10:04:32 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 471e27a7..13013971 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -29,7 +29,7 @@ pipeline { stage('Run Unit Tests') { steps { - sh 'npm run test -- --coverage --reporters=jest-junit' + sh 'npm run build -- --coverage --reporters=jest-junit' } } @@ -44,7 +44,7 @@ pipeline { always { junit 'reports/junit.xml' archiveArtifacts artifacts: 'reports/**', fingerprint: true - cleanWs(cleanWhenNotBuilt: false, notFailBuild: true) + cleanWs(cleanWhenNotBuilt: true, notFailBuild: true) } success { echo 'Build completed successfully!'