[JIRA] [workflow-plugin] (JENKINS-27092) create a step to abort the build with a NOT_BUILT status

6 views
Skip to first unread message

andrew.bayer@gmail.com (JIRA)

unread,
Dec 5, 2015, 11:42:02 AM12/5/15
to jenkinsc...@googlegroups.com
Andrew Bayer assigned an issue to Andrew Bayer
 
Jenkins / New Feature JENKINS-27092
create a step to abort the build with a NOT_BUILT status
Change By: Andrew Bayer
Assignee: Jesse Glick Andrew Bayer
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Dec 5, 2015, 11:55:02 AM12/5/15
to jenkinsc...@googlegroups.com
Andrew Bayer commented on New Feature JENKINS-27092
 
Re: create a step to abort the build with a NOT_BUILT status

My gut instinct is to take the Result as a String and use Result.fromString() at execution time rather than converting at specification time...or maybe I'm just getting distracted by the enum mention. =)

jglick@cloudbees.com (JIRA)

unread,
Dec 5, 2015, 6:52:01 PM12/5/15
to jenkinsc...@googlegroups.com

Well this kind of addition to DescribableHelper should be easy, and may be useful in the future.

andrew.bayer@gmail.com (JIRA)

unread,
Dec 7, 2015, 11:33:08 AM12/7/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Dec 7, 2015, 10:38:04 PM12/7/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on New Feature JENKINS-27092
 
Re: create a step to abort the build with a NOT_BUILT status

Code changed in jenkins
User: Mark Waite
Path:
src/main/java/hudson/plugins/git/GitStatus.java
src/test/java/hudson/plugins/git/GitStatusTest.java
http://jenkins-ci.org/commit/git-plugin/2dfd86d27a7cd4089349fd012d7d70a5e827ed81
Log:
Test JENKINS-30178 using GitStatus.toString

Asserts that job parameter default values are available when a job
is started by a notifyCommit. If the notifyCommit includes a sha1
parameter, then the changes for JENKINS-27092 fail to assign parameters
their default values.

Modifying the GitStatus object to be more easily tested was simpler
than using a TestExtension. Should eventually replace the testing
misuse of the GitStatus.toString() method with a TestExtension of
GitStatus.Listener.

jglick@cloudbees.com (JIRA)

unread,
Jun 10, 2016, 10:33:01 AM6/10/16
to jenkinsc...@googlegroups.com

Would be useful in conjunction with JENKINS-30412, to skip builds with uninteresting changes.

jglick@cloudbees.com (JIRA)

unread,
Jun 10, 2016, 10:37:01 AM6/10/16
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Aug 29, 2016, 1:31:10 PM8/29/16
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Change By: Jesse Glick
Component/s: workflow-basic-steps-plugin
Component/s: pipeline
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Feb 20, 2018, 12:46:04 PM2/20/18
to jenkinsc...@googlegroups.com
Jesse Glick reopened an issue
 

This is not a duplicate. The original request was for a way to abort the build: stopping execution by unwinding the call stack. JENKINS-45579 is about marking some status in the stage for visualization purposes and then continuing the build.

Change By: Jesse Glick
Resolution: Duplicate
Status: Resolved Reopened
Assignee: Andrew Bayer
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

vivek.pandey@gmail.com (JIRA)

unread,
Feb 27, 2018, 12:27:04 AM2/27/18
to jenkinsc...@googlegroups.com
Vivek Pandey updated an issue
Change By: Vivek Pandey
Sprint: Pipeline - Candidates March 2018

vivek.pandey@gmail.com (JIRA)

unread,
Feb 27, 2018, 12:27:05 AM2/27/18
to jenkinsc...@googlegroups.com

jglick@cloudbees.com (JIRA)

unread,
Jul 29, 2019, 4:59:03 PM7/29/19
to jenkinsc...@googlegroups.com
 
Re: create a step to abort the build with a NOT_BUILT status

There is also a use case for passing UNSTABLE: if you have some test failures in one parallel branch and are using failFast, you should be able to interrupt the build now. (Of course this could also be handled directly in the junit step.) Making that look pretty would I think also require replacing ParallelStep.FailFastException with FlowInterruptedException so that the other branches are shown as ABORTED rather than FAILED in Blue Ocean.

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

jglick@cloudbees.com (JIRA)

unread,
Jan 28, 2020, 8:21:03 AM1/28/20
to jenkinsc...@googlegroups.com

For example, the buildPlugin library function could benefit from throwing up UNSTABLE.

There are some interactions here with JENKINS-39203 and JENKINS-49073.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages