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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Andrew Bayer
            Reporter:
            David Sanftenberg
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: