Add stubs for post-build actions.

This commit is contained in:
Manuele Simi 2019-05-28 16:43:07 +02:00
parent 415da5a172
commit ff22bc3d07
1 changed files with 20 additions and 0 deletions

20
Jenkinsfile vendored
View File

@ -30,5 +30,25 @@ pipeline {
}
}
// post-build actions
post {
always {
echo 'This will always run'
}
success {
echo 'This will run only if successful'
}
failure {
echo 'This will run only if failed'
}
unstable {
echo 'This will run only if the run was marked as unstable'
}
changed {
echo 'This will run only if the state of the Pipeline has changed'
echo 'For example, if the Pipeline was previously failing but is now successful'
}
}
}