Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60177

StackOverflowError After Pipeline Declarative Upgraded to 1.4.0

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Windows Server 2016 10.0.14393 N/A Build 14393
      Jenkins v2.190.2
      Java runtime version 1.8.0_66-b18

      A multibranch pipeline began failing with a StackOverflowError after updating these plugins to 1.4.0. Rolling back to 1.3.9 resolved the issue.

      • Pipeline: Declarative
      • Pipeline: Declarative Extension Points API
      • Pipeline: Model API
      • Pipeline: Stage Tags Metadata

      This particular pipeline uses a when statement to bypass a block of stages. These stages are configured as sequential stages, three stages within a parent stage where the when statement is. If the stages are not skipped then the error does not occur.

      The pipeline is running on the master (Windows) system with no slaves defined.

      Attached is a simplified pipeline and the console output. I've defined the BRANCH_NAME environment variable manually to simulate a Git branch.

      For some reason, this was the simplest pipeline I could create. Taking out a seemingly unrelated stage or environment block would allow it to run without error.

            Unassigned Unassigned
            charleswb Charles Bozarth
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: