Lukas Resch
unread,Mar 25, 2019, 10:02:25 AM3/25/19Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Jenkins Users
Hi,
I have the following mailer settings in my post stage:
post {
always {
step([$class: 'Mailer',
notifyEveryUnstableBuild: true,
recipients: emailextrecipients([brokenBuildSuspects(),
culprits()]),
sendToIndividuals: true])
}
}
For a broken build (sh in a stage fails) the mail subject is set to
"unstable". Within Jenkins the build is shown as failure.
The only thing I have in that Jenkinsfile altering the build status is
post {
success {
recordIssues tools: [pyLint(pattern:
'pylint.log')], unstableTotalHigh: 10, unstableNewAll: 1
}
}
For a stage before the failing one. Could it be that the build result is
not set properly to failure before the always section of the overall
post stage is run?
kind regards,
Lukas