[JIRA] (JENKINS-50652) Aborting a sh or bat step fires both aborted and failure post conditions

2 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Apr 11, 2018, 5:38:03 PM4/11/18
to jenkinsc...@googlegroups.com
Andrew Bayer updated an issue
 
Jenkins / Bug JENKINS-50652
Aborting a sh or bat step fires both aborted and failure post conditions
Change By: Andrew Bayer
Summary: Post stages are incorrectly handled Aborting a sh or bat step fires both aborted and failure post conditions
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Apr 11, 2018, 5:43:02 PM4/11/18
to jenkinsc...@googlegroups.com

andrew.bayer@gmail.com (JIRA)

unread,
Apr 11, 2018, 5:43:02 PM4/11/18
to jenkinsc...@googlegroups.com

flood@itnews-bg.com (JIRA)

unread,
Apr 12, 2018, 11:10:02 AM4/12/18
to jenkinsc...@googlegroups.com
Steve Todorov commented on Bug JENKINS-50652
 
Re: Aborting a sh or bat step fires both aborted and failure post conditions

Thanks for your quick fix! Let me know if there is going to be a snapshot release which I could test. 

scm_issue_link@java.net (JIRA)

unread,
Apr 17, 2018, 11:45:01 AM4/17/18
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Andrew Bayer
Path:
pipeline-model-definition/src/main/groovy/org/jenkinsci/plugins/pipeline/modeldefinition/model/conditions/Failure.groovy
pipeline-model-definition/src/test/java/org/jenkinsci/plugins/pipeline/modeldefinition/BuildConditionResponderTest.java
http://jenkins-ci.org/commit/pipeline-model-definition-plugin/70d2af8039aa06db05fb0bb1dcc2d370940387ac
Log:
[FIXED JENKINS-50652] Don't fire post failure for aborted durable task

It appears that an aborted durable task like sh results in
`CpsFlowExecution#result` being `ABORTED`, but `WorkflowRun#result`
being `FAILURE`, until the whole build actually finishes and the run
gets updated accordingly. So the `failure` `post` condition shouldn't
fire if `CpsFlowExecution#result` is `ABORTED`.

andrew.bayer@gmail.com (JIRA)

unread,
Apr 17, 2018, 11:47:04 AM4/17/18
to jenkinsc...@googlegroups.com
 

Will be released in Declarative 1.2.9 later today.

Change By: Andrew Bayer
Status: In Review Resolved
Resolution: Fixed

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:24:46 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Fixed
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages