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 ]

          Andrew Bayer added a comment -

          Well, bugger. Lemme look.

          Andrew Bayer added a comment - Well, bugger. Lemme look.

          Andrew Bayer added a comment -

          I can't reproduce this locally so far - can you include the full stacktrace and possibly a minimal Jenkinsfile that reproduces it? Thanks!

          Andrew Bayer added a comment - I can't reproduce this locally so far - can you include the full stacktrace and possibly a minimal Jenkinsfile that reproduces it? Thanks!

          Sure, give me a few minutes I rolled back the changes (it broke our dev builds).

          David Sanftenberg added a comment - Sure, give me a few minutes I rolled back the changes (it broke our dev builds).
          David Sanftenberg made changes -
          Attachment New: image-2017-11-20-14-05-25-123.png [ 40438 ]

          Here's the full plugin update list that I installed before I had to roll back. I can't duplicate right now as we need our dev server for awhile, but if you install these I'm pretty sure you'll repro.

           

          David Sanftenberg added a comment - Here's the full plugin update list that I installed before I had to roll back. I can't duplicate right now as we need our dev server for awhile, but if you install these I'm pretty sure you'll repro.  

          Andrew Bayer added a comment -

          dbsanfte Much appreciated, and sorry for the hassle!

          Andrew Bayer added a comment - dbsanfte Much appreciated, and sorry for the hassle!

          Andrew Bayer added a comment -

          Bah, still can't reproduce it. I'll keep experimenting to try to reproduce it, but the full stacktrace would really be helpful.

          Andrew Bayer added a comment - Bah, still can't reproduce it. I'll keep experimenting to try to reproduce it, but the full stacktrace would really be helpful.

          Alright let me fetch it for you, give me a few.

          David Sanftenberg added a comment - Alright let me fetch it for you, give me a few.

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

              Created:
              Updated:
              Resolved: