Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Minor
-
Resolution: Fixed
-
Component/s: workflow-job-plugin
-
Labels:
-
Environment:all-latest
-
Similar Issues:
Description
I've been using infinite Pipeline for a demo. The job was running for a couple of hours, and then Jenkins master declined to the build due to the StackOverflow.
node { int i = 0; while(true) { sh "echo 'Hello, world ${i}!'" sh "sleep 5" i = i + 1; } }
Log: See attachment
Attachments
Issue Links
- relates to
-
JENKINS-50350 JEP-200: ConversionException: Refusing to unmarshal logPrefixCache
-
- Closed
-
- links to
Thomas Johansen I'm not sure exactly what's triggering an NPE there (looks like it somehow got caught in an invalid state) – tried to reproduce but I can't.
But I've got a fix that's verified to remove the StackOverflowException and allow a build to cleanly resume in https://github.com/jenkinsci/workflow-job-plugin/pull/91 – please try the attached snapshot built off of it which should remove your issue.
In general I'd advise to find alternate courses in Pipeline than explicit polling loops – in this case an enhancement to JIRA plugin or simply accept the use of an agent to do polling while needed (perhaps with exponential backoff). workflow-job.hpi