[JIRA] (JENKINS-35905) Add option to Fail the build if node label does not exist or if it cannot be provisioned within a timeout

13 views
Skip to first unread message

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 15, 2016, 12:30:02 PM11/15/16
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
 
Jenkins / New Feature JENKINS-35905
Add option to Fail the build if node label does not exist or if it cannot be provisioned within a timeout
Change By: Oleg Nenashev
Issue Type: Improvement New Feature
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 15, 2016, 12:30:02 PM11/15/16
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Summary: Add option to Fail the build if node label does not exist . or if it cannot be provisioned within a timeout

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 15, 2016, 12:31:09 PM11/15/16
to jenkinsc...@googlegroups.com
Oleg Nenashev reopened an issue
 

I think this issues is a valid improvement request. The default behavior of node() cannot be changed of course, but it may be potentially doable via additional Pipeline closures or additional node closure parameters

Jenkins / New Feature JENKINS-35905
Change By: Oleg Nenashev
Resolution: Won't Fix
Status: Resolved Reopened
Assignee: Jesse Glick

jglick@cloudbees.com (JIRA)

unread,
Nov 23, 2016, 12:37:01 PM11/23/16
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
Change By: Jesse Glick
Component/s: github-branch-source-plugin
Component/s: pipeline

jglick@cloudbees.com (JIRA)

unread,
Nov 23, 2016, 12:38:01 PM11/23/16
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Won't Fix
 

No such feature exists for any other job type, and in general it is not a good idea. You could probably write a Pipeline library which implements it if you really wanted. Of course simply wrapping everything in timeout would work.

Change By: Jesse Glick
Status: Reopened Resolved
Resolution: Won't Fix

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 23, 2016, 12:42:06 PM11/23/16
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Nov 23, 2016, 12:42:07 PM11/23/16
to jenkinsc...@googlegroups.com
Oleg Nenashev reopened an issue
 

Since Jesse Glick disagrees, I have moved it to plugin proposals

Change By: Oleg Nenashev
Resolution: Won't Fix
Status: Resolved Reopened

pwolf@cloudbees.com (JIRA)

unread,
Jan 5, 2017, 1:00:02 PM1/5/17
to jenkinsc...@googlegroups.com
Patrick Wolf commented on New Feature JENKINS-35905
 
Re: Add option to Fail the build if node label does not exist or if it cannot be provisioned within a timeout

From Jesse Glick:
`ExecutorStepExecution.CancelledItemListener` could check `User.current` and if not null, print a message indicating what user cancelled the item, thus resulting in the build failure. Not sure it would help anything, but would at least be very easy to implement!

aditya.sreekumar@gmail.com (JIRA)

unread,
May 14, 2018, 2:17:02 PM5/14/18
to jenkinsc...@googlegroups.com

We are facing this issue currently on our builds as well on occasion as we migrate jobs from one jenkins server to another which is accompanied with associated node relabeling and addition of new nodes. What I thought made sense was if the timeout could be applied to the pipeline as a whole and not just a step.

This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

dar.amit@gmail.com (JIRA)

unread,
Jun 25, 2019, 5:25:04 AM6/25/19
to jenkinsc...@googlegroups.com
Amit Dar assigned an issue to Amit Dar
 
Change By: Amit Dar
Assignee: Amit Dar
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

dar.amit@gmail.com (JIRA)

unread,
Jun 25, 2019, 5:28:03 AM6/25/19
to jenkinsc...@googlegroups.com
Amit Dar commented on New Feature JENKINS-35905
 
Re: Add option to Fail the build if node label does not exist or if it cannot be provisioned within a timeout

This option is a high valuable option for organizations using a main jenkins server handling jobs for various development and integration groups.

this way, a job waiting for execution would be automatically removed from the build queue after a pre-defined time for machine provisioning and the built queue will stay "clean". a notification with the reason should also be viewable in the console output of the execution (though it was not executed at all...).

dar.amit@gmail.com (JIRA)

unread,
Jun 25, 2019, 5:29:02 AM6/25/19
to jenkinsc...@googlegroups.com

marcus.schulmann@xitaso.com (JIRA)

unread,
Mar 30, 2020, 3:52:08 AM3/30/20
to jenkinsc...@googlegroups.com
Marcus Schulmann commented on New Feature JENKINS-35905
 
Re: Add option to Fail the build if node label does not exist or if it cannot be provisioned within a timeout

I wonder why this is still not yet implemented. This clogged our whole build-pipeline over the weekend because one agent was down, which was needed for specific tests.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

dar.amit@gmail.com (JIRA)

unread,
Mar 30, 2020, 6:42:04 AM3/30/20
to jenkinsc...@googlegroups.com
Amit Dar commented on New Feature JENKINS-35905

I totally agree with Marcus Schulmann, sometimes there is a uniqe agent (with specific hardware, for instance) used for tests. I wonder what can we do in order to bump this issue's importance and handling?

Reply all
Reply to author
Forward
0 new messages