Update 'Jenkinsfile'

add post section
This commit is contained in:
Roberto Cirillo 2022-03-31 16:19:49 +02:00
parent 6333b76a7e
commit dd76fc781d
1 changed files with 16 additions and 0 deletions

16
Jenkinsfile vendored
View File

@ -41,4 +41,20 @@ pipeline {
}
}
}
post {
always {
chucknorris()
}
success {
echo 'The pipeline worked!'
}
failure {
echo 'The pipeline has failed'
emailext attachLog: true,
to: 'jenkinsbuilds@d4science.org',
subject: "[JenkinsDependenciesWalker D4S] build ${currentBuild.fullDisplayName} failed for component ${inputProject}",
body: "Something is wrong with ${env.BUILD_URL}"
}
}
}