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

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

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

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

            People

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

              Dates

                Created:
                Updated:
                Resolved: