[JIRA] (JENKINS-54477) email-ext unable to correctly determine status of pipeline build (especially after JENKINS-27395)

2 views
Skip to first unread message

tobias-jenkins@23.gs (JIRA)

unread,
Nov 5, 2018, 7:41:02 PM11/5/18
to jenkinsc...@googlegroups.com
Tobias Gruetzmacher created an issue
 
Jenkins / Bug JENKINS-54477
email-ext unable to correctly determine status of pipeline build (especially after JENKINS-27395)
Issue Type: Bug Bug
Assignee: David van Laatum
Components: email-ext-plugin
Created: 2018-11-06 00:40
Priority: Major Major
Reporter: Tobias Gruetzmacher

There are some cases where the email-ext plugin incorrectly reports the "current" build status. I'm still not sure if this is a (scripted) pipeline restriction or a problem in email-ext. For my company it became especially bad now with the update of pipeline-maven-plugin from 3.5.14 to 3.5.15 (based on its implementation of JENKINS-27395, https://github.com/jenkinsci/pipeline-maven-plugin/commit/cfe37eeb66c07fc81c286f78499acfdef7aa05ec) - This change now changed all "UNSTABLE" mails to "SUCCESS" mails, which totally confuses our developers

The other case where I already implemented a workaround is when some step throws an exception:

 

try {
  some
  build
  steps
} catch (e) {
  // Workaround!
  currentBuild.result = 'FAILURE'
  throw e
} finally {
  emailext ...
}

If there were some way to either let Jenkins update the global job status from the individual step status or postpone the emailext exection after Jenkins can determine if the pipeline was successful or not, that would help a lot...

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 10:44:02 AM7/17/19
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-54477
 
Re: email-ext unable to correctly determine status of pipeline build (especially after JENKINS-27395)

email-ext can only check the getResult for the current build, there is not really a way (as far as I know) to know whether part of the pipeline has failed otherwise.

Reply all
Reply to author
Forward
0 new messages