Deploy test

This commit is contained in:
Juan Ferrer 2019-01-08 17:01:44 +01:00
parent 3f27250852
commit 51c6551edc
1 changed files with 7 additions and 3 deletions

10
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ try {
} }
stage ('Build') { stage ('Build') {
nodejs('node-lts') { 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 install"
sh "gulp build" sh "gulp build"
} }
@ -55,7 +55,11 @@ try {
} }
} }
} catch(e) { } catch(e) {
buildError = e email(
to: env.GIT_COMMITTER_EMAIL,
subject: "Pipeline: Failed",
body: e.message
)
} }
if (env.GIT_COMMITTER_EMAIL) { if (env.GIT_COMMITTER_EMAIL) {
@ -68,7 +72,7 @@ if (env.GIT_COMMITTER_EMAIL) {
status = 'Success' status = 'Success'
} }
emailext( email(
to: env.GIT_COMMITTER_EMAIL, to: env.GIT_COMMITTER_EMAIL,
subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})", subject: "Pipeline: ${status}: ${env.JOB_NAME} (${env.BUILD_NUMBER})",
body: body body: body