diff --git a/Jenkinsfile b/Jenkinsfile index 40e5f26ab..10afa9ad5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,7 +26,7 @@ try { } stage ('Build') { nodejs('node-lts') { - sh "env NODE_ENV= npm install --no-audit" + sh "env NODE_ENV= npm-123 install --no-audit" sh "gulp install" sh "gulp build" } @@ -55,7 +55,11 @@ try { } } } catch(e) { - buildError = e + email( + to: env.GIT_COMMITTER_EMAIL, + subject: "Pipeline: Failed", + body: e.message + ) } if (env.GIT_COMMITTER_EMAIL) { @@ -68,7 +72,7 @@ if (env.GIT_COMMITTER_EMAIL) { status = 'Success' } - emailext( + email( to: env.GIT_COMMITTER_EMAIL, subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})", body: body