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

--
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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0e1509b4-c29b-64fe-8802-bd808c290a59%40ngworx.ag.
For more options, visit https://groups.google.com/d/optout.

Reply via email to