Hi, Take a look at:
https://github.com/freebsd/freebsd-ci/blob/master/scripts/build/build-test.groovy#L233 I have a big try / catch / finally block in the script. I explicitly set currentBuild.result in that script, and check to see if currentBuild.result is equal to "ABORTED". I don't know if there is a better way to do it, but that's what I got to work. -- Craig On Wed, Feb 3, 2016 at 8:50 AM, Meiteimacha999 <[email protected]> wrote: i have my workflow set up like so. This sends an email notification when a > job fails. > > > > But the issue, is i am also getting email notice for jobs that were > cancelled due to the newer job catching up with the older job while running > concurrently. I just want email notice for jobs that actually failed due to > some error and not be notified for jobs that were marked failed as they > were canceled by a presiding job. > Have anyone handled this issue? > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAG%3DrPVe5HkpCS-wMYBEbFUhwZLMaNQ-94b_1pz-50PfESxfNEw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
