Deploy notifications when success

This commit is contained in:
Juan Ferrer 2019-01-08 17:07:03 +01:00
parent 28810d834f
commit 4af9e47c8d
1 changed files with 4 additions and 9 deletions

13
Jenkinsfile vendored
View File

@ -26,7 +26,7 @@ try {
} }
stage ('Build') { stage ('Build') {
nodejs('node-lts') { nodejs('node-lts') {
sh "env NODE_ENV= npm-123 install --no-audit" sh "env NODE_ENV= npm install --no-audit"
sh "gulp install" sh "gulp install"
sh "gulp build" sh "gulp build"
} }
@ -55,16 +55,12 @@ try {
} }
} }
} catch(e) { } catch(e) {
email( buildError = e
to: env.GIT_COMMITTER_EMAIL,
subject: "Pipeline: Failed",
body: 'Failed'
)
} }
/*
if (env.GIT_COMMITTER_EMAIL) { if (env.GIT_COMMITTER_EMAIL) {
def status def status
def body = "<p>Check status at ${env.BUILD_URL}</p>" def body = "Check status at ${env.BUILD_URL}"
if (buildError) { if (buildError) {
status = 'Failed' status = 'Failed'
@ -78,4 +74,3 @@ if (env.GIT_COMMITTER_EMAIL) {
body: body body: body
) )
} }
*/