diff --git a/Jenkinsfile b/Jenkinsfile index 8ee305b..2d1bb39 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,9 +24,10 @@ node { env.NODEJS_HOME = "${tool 'node14'}" env.PATH="${env.NODEJS_HOME}/bin:${env.PATH}" + def customImage - currentBuild.result = "SUCCESS" + currentBuild.result = "UNSTABLE" try { @@ -50,7 +51,7 @@ node { stage('Build Docker'){ - def customImage = docker.build("web/wannistesvorbei:${env.BRANCH_NAME}-${env.GIT_COMMIT}") + customImage = docker.build("web/wannistesvorbei:${env.BRANCH_NAME}-${env.GIT_COMMIT}") } stage('Deploy'){ @@ -69,6 +70,8 @@ node { stage('Cleanup'){ + currentBuild.result = "SUCCESS" + echo 'prune and cleanup' sh 'npm prune' sh 'rm node_modules -rf'