[JIRA] (JENKINS-38316) Entering, then cancelling, quiet mode causes builds to hang

5 views
Skip to first unread message

jglick@cloudbees.com (JIRA)

unread,
Mar 2, 2017, 2:44:01 PM3/2/17
to jenkinsc...@googlegroups.com
Jesse Glick updated an issue
 
Jenkins / Bug JENKINS-38316
Entering, then cancelling, quiet mode causes builds to hang
Change By: Jesse Glick
Summary: Putting Jenkins in shutdown Entering, then cancelling, quiet mode breaks running pipeline runs causes builds to hang
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Mar 2, 2017, 2:49:01 PM3/2/17
to jenkinsc...@googlegroups.com
Jesse Glick commented on Bug JENKINS-38316
 
Re: Entering, then cancelling, quiet mode causes builds to hang

Freezing the build—that is, the Groovy part—is deliberate, to prevent far worse problems, since we do not know when the actual JVM exit is going to come (TBD if we can safely block TermMilestone.COMPLETED). But the possibility that this mode would subsequently be cancelled was never considered. Pause + Resume is the appropriate workaround.

The whole idea of "Prepare for shutdown" is to allow us to finish the currently running jobs

It is to allow you to finish currently running freestyle (Maven, matrix, …) builds. So if you /safeRestart Jenkins will restart as soon as any of those are completed, and running Pipeline builds will be left alone.

io.yasko@gmail.com (JIRA)

unread,
Mar 1, 2018, 3:41:03 AM3/1/18
to jenkinsc...@googlegroups.com

Also a problem in Jenkins: 2.89.4, Pipeline: 2.5 

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

r.fuereder@xortex.com (JIRA)

unread,
Mar 14, 2018, 2:56:02 AM3/14/18
to jenkinsc...@googlegroups.com
Reinhold Füreder updated an issue
 
Change By: Reinhold Füreder
Attachment: screenshot-buildexecutorstatus-remainder.png

r.fuereder@xortex.com (JIRA)

unread,
Mar 14, 2018, 2:58:03 AM3/14/18
to jenkinsc...@googlegroups.com
Reinhold Füreder commented on Bug JENKINS-38316
 
Re: Entering, then cancelling, quiet mode causes builds to hang

ad #2 pipeline stops/freezes instead of expected and documented (e.g. also in UI "Manage Jenkins > Prepare for Shutdown") finishing of job:

  • this is surprising and unexpected considering also the documentation, but of course makes sense as described by Jesse.
  • however, would it make sense to change that to e.g. finish execution of currently active stage like commented in JENKINS-49365 – and somehow signal that in the UI similar to current "(part)" suffix in "build executor status" to allow for gentle shutdown at well-defined points? And therefore, as mentioned in JENKINS-49365, also when docker.image(...).inside(...) is used...

ad #3 pipeline does not wake up after canceling the shutdown mode:

  • yes, I can confirm: "pause" (also) after cancelling followed by "resume" works and would be an IMHO acceptable workaround – although I really would not mind if that would be "just" fixed, naively assuming that it is not that difficult to do?

While (resumable, i.e. non-docker.image(...).inside(...)-dependent) pipelines resume fine after a restart, there is a remainder in "build executor status" that (after the pipeline has finished) requires the workaround to abort it (the finished pipeline) by pressing the 'x' that in turn then asks "Are you sure you want to abort null?":

svanoort@cloudbees.com (JIRA)

unread,
Apr 25, 2018, 11:05:07 AM4/25/18
to jenkinsc...@googlegroups.com
Sam Van Oort closed an issue as Fixed
 

Closing in preference to the pre-existing issue that has the same result (sigh, still not resolved yet).

Change By: Sam Van Oort
Status: Open Closed
Resolution: Fixed

DTaylorBusiness@gmail.com (JIRA)

unread,
Dec 13, 2018, 1:47:03 PM12/13/18
to jenkinsc...@googlegroups.com
David Taylor commented on Bug JENKINS-38316
 
Re: Entering, then cancelling, quiet mode causes builds to hang

Any updates would be very appreciated. This bug is causing a lot of problems for our build system

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

totoroliu1215@hotmail.com (JIRA)

unread,
Jan 5, 2019, 1:57:03 AM1/5/19
to jenkinsc...@googlegroups.com
Rick Liu commented on Bug JENKINS-38316

This still happened to Jenkins v*2.138.4* LTS

jglick@cloudbees.com (JIRA)

unread,
Dec 3, 2019, 11:36:16 AM12/3/19
to jenkinsc...@googlegroups.com
Jesse Glick reopened an issue
 

(incorrect resolution)

Change By: Jesse Glick
Resolution: Fixed
Status: Closed Reopened
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jglick@cloudbees.com (JIRA)

unread,
Dec 3, 2019, 11:36:18 AM12/3/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Duplicate
Change By: Jesse Glick
Status: Reopened Resolved
Resolution: Duplicate
Reply all
Reply to author
Forward
0 new messages