[JIRA] (JENKINS-38566) Unexpected break statement hangs the build
Title: Message Title Andrew Bayer resolved as Cannot Reproduce Jenkins / JENKINS-38566 Unexpected break statement hangs the build Change By: Andrew Bayer Status: Open Resolved Resolution: Cannot Reproduce Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- 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-38566) Unexpected break statement hangs the build
Title: Message Title Andrew Bayer commented on JENKINS-38566 Re: Unexpected break statement hangs the build and fwiw, this doesn't seem to hang the build any more (at least as of workflow-cps 2.45 on my testbed) - the build fails as it would from any other exception, at least with this example: stage('foo') { echo "hello" break } Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-38566) Unexpected break statement hangs the build
Title: Message Title Andrew Bayer commented on JENKINS-38566 Re: Unexpected break statement hangs the build Jesse Glick - what should be in that CpsCallableInvocationWrapper? Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- 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-38566) Unexpected break statement hangs the build
Title: Message Title Jesse Glick commented on JENKINS-38566 Re: Unexpected break statement hangs the build Besides fixing the language bug (CallEnv.getBreakAddress should I guess be throwing a CpsCallableInvocation wrapper), the program ought to be treated as finished when some miscellaneous exception is thrown from the CPS VM thread. 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-38566) Unexpected break statement hangs the build
Title: Message Title recampbell updated an issue Jenkins / JENKINS-38566 Unexpected break statement hangs the build Change By: recampbell Labels: pipeline-hangs 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-38566) Unexpected break statement hangs the build
Title: Message Title Jesse Glick updated an issue Jenkins / JENKINS-38566 Unexpected break statement hangs the build Change By: Jesse Glick Component/s: workflow-cps-plugin Component/s: pipeline-build-step-plugin 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-38566) Unexpected break statement hangs the build
Title: Message Title Edward Easton commented on JENKINS-38566 Re: Unexpected break statement hangs the build FWIW this came about due to the changes to the stage() step semantics - I had code nested inside a stage {} block that was itself within a for loop. The break statement was now within a closure and without any context. The worst bit about this is that the thread dump points to the previous line in the code 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-38566) Unexpected break statement hangs the build
Title: Message Title Edward Easton created an issue Jenkins / JENKINS-38566 Unexpected break statement hangs the build Issue Type: Bug Assignee: Unassigned Components: pipeline-build-step-plugin Created: 2016/Sep/28 11:19 AM Environment: jenkins 2.7.4, build-step-plugin 2.3 Priority: Major Reporter: Edward Easton A pipeline script with an unexpected break statement like this: break .. will hang the build with no feedback. The traceback in the server log is: WARNING: Unexpected exception in CPS VM thread: CpsFlowExecution[Owner[pipeline-scratch2/29:pipeline-scratch2 #29]] java.lang.IllegalStateException: unexpected break statement at com.cloudbees.groovy.cps.impl.CallEnv.getBreakAddress(CallEnv.java:62) at com.cloudbees.groovy.cps.impl.ProxyEnv.getBreakAddress(ProxyEnv.java:44) at com.cloudbees.groovy.cps.impl.ProxyEnv.getBreakAddress(ProxyEnv.java:44) at com.cloudbees.groovy.cps.impl.BreakBlock.eval(BreakBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:58) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:154) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable$1.call(SandboxContinuable.java:33)