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

java.lang.NoSuchMethodError: No such DSL method 'when' found among steps

XMLWordPrintable

      With a requirement to build selectively from a single mono repo I was trying to create steps for every project and conditionally (using 'when') build only what's required.

      When running the attached pipeline it fails with this exception - java.lang.NoSuchMethodError: No such DSL method 'when' found among steps [ArtifactoryGradleBuild

      full exception attached.

        1. exception.txt
          11 kB
          Derek Pilat
        2. Jenkinsfile.txt
          2 kB
          Derek Pilat

            Unassigned Unassigned
            dpilat Derek Pilat
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: