| Even when using functions to reduce duplication, our pipelines are littered with stuff like this:
post {
always {
collectJunitResults()
sendBitbucketNofication(currentBuild.currentResult)
}
changed {
sendEmailNofication()
}
unstable {
sendEmailNofication()
}
failure {
sendEmailNofication()
}
aborted {
sendEmailNofication()
}
}
It would be much, much nicer and maintainable if the identical sections could be collapsed into something like:
changed, unstable, failure, aborted {
sendEmailNofication()
}
|