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

disableConcurrentBuilds() within an options block is now broken, throws Groovy exception during Jenkinsfile parsing

      Options block like this:

      pipeline {
          options {
              disableConcurrentBuilds()
              timeout(time: 30, unit: 'MINUTES')
          }
          (...)
      }

      disableConcurrentBuilds() now throws a Groovy exception at build time when Jenkins tries to compile the Jenkinsfile. Class cast error from @{} to Describable.

      Probably related to this change:

      https://issues.jenkins-ci.org/browse/JENKINS-47781

          [JENKINS-48115] disableConcurrentBuilds() within an options block is now broken, throws Groovy exception during Jenkinsfile parsing

          David Sanftenberg created issue -
          David Sanftenberg made changes -
          Priority Original: Critical [ 2 ] New: Blocker [ 1 ]
          David Sanftenberg made changes -
          Attachment New: image-2017-11-20-14-05-25-123.png [ 40438 ]
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #221 (Web Link)" [ 18118 ]
          Andrew Bayer made changes -
          Component/s New: jira-steps-plugin [ 21974 ]
          Component/s New: workflow-step-api-plugin [ 21718 ]
          Naresh Rayapati made changes -
          Remote Link New: This issue links to "PR61 (Web Link)" [ 18121 ]
          Naresh Rayapati made changes -
          Remote Link Original: This issue links to "PR61 (Web Link)" [ 18121 ]
          Naresh Rayapati made changes -
          Remote Link New: This issue links to "JIRA Steps #61 (Web Link)" [ 18122 ]
          Andrew Bayer made changes -
          Link New: This issue is duplicated by JENKINS-48127 [ JENKINS-48127 ]

            abayer Andrew Bayer
            dbsanfte David Sanftenberg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: