Mail notification set to unstable for failed build

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Mail notification set to unstable for failed build

Lukas Resch-2

I have the following mailer settings in my post stage:

post {
         always {
             step([$class: 'Mailer',
                 notifyEveryUnstableBuild: true,
                 recipients: emailextrecipients([brokenBuildSuspects(),
                 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,

You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit
For more options, visit