Jenkinsfile fixes

This commit is contained in:
Juan Ferrer 2019-01-11 14:51:01 +01:00
parent 133c32b4ea
commit 1529f3348b
1 changed files with 1 additions and 5 deletions

6
Jenkinsfile vendored
View File

@ -1,7 +1,5 @@
#!/usr/bin/env groovy #!/usr/bin/env groovy
def buildError
pipeline { pipeline {
agent any agent any
environment { environment {
@ -102,9 +100,7 @@ pipeline {
post { post {
always { always {
script { script {
if (!env.GIT_COMMITTER_EMAIL) if (!env.GIT_COMMITTER_EMAIL) return
return
mail( mail(
to: env.GIT_COMMITTER_EMAIL, to: env.GIT_COMMITTER_EMAIL,
subject: "Pipeline: ${env.JOB_NAME} (${env.BUILD_NUMBER}): ${currentBuild.result}", subject: "Pipeline: ${env.JOB_NAME} (${env.BUILD_NUMBER}): ${currentBuild.result}",