[JIRA] (JENKINS-39266) Timeout occurence inside a retry step wont cancel the latter
Title: Message Title Jesse Glick resolved as Duplicate As of JENKINS-39072, if the body fails to terminate within a given period of time—for example, because you have caught the timeout exception and decided to continue—after a grace period the body will be forcibly killed. In this case it is better to put retry outside timeout rather than inside. Jenkins / JENKINS-39266 Timeout occurence inside a retry step wont cancel the latter Change By: Jesse Glick Status: Open Resolved Resolution: Duplicate Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message
[JIRA] (JENKINS-39266) Timeout occurence inside a retry step wont cancel the latter
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-39266 Timeout occurence inside a retry step wont cancel the latter Change By: Jesse Glick having a code such as: {code} node('master') { timeout (10) {retry(2) { try {sh "while true; do; sleep 2; done" } catch (e) {echo "wont ever run as theres no exception coming out from the timeout" }} }} {code} leds to the first retry to end due a (supposedly) internal exception being thrown but go on with the second one.Shouldnt timeouts forbid retrying? Besides, timeouts won't throw an exception as the last echo won't ever happen Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-39266) Timeout occurence inside a retry step wont cancel the latter
Title: Message Title Javier Delgado created an issue Jenkins / JENKINS-39266 Timeout occurence inside a retry step wont cancel the latter Issue Type: Bug Assignee: Unassigned Components: workflow-basic-steps-plugin Created: 2016/Oct/26 1:27 PM Environment: Jenkins 2.27 workflow-basic-steps-plugin 2.2 Priority: Major Reporter: Javier Delgado having a code such as: node('master') { timeout (10) { retry(2) { try { sh "while true; do; sleep 2; done" } catch (e) { echo "wont ever run as theres no exception coming out from the timeout" } } } } leds to the first retry to end due a (supposedly) internal exception being thrown but go on with the second one. Shouldnt timeouts forbid retrying? Besides, timeouts won't throw an exception as the last echo won't ever happen Add Comment