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

Using environment in when block leads to unknown conditional error

XMLWordPrintable

      After updating to the latest version of the Pipeline Model Definition Plugin I get the following error:

       

      WorkflowScript: 43: Unknown conditional error. Valid conditionals are: allOf, anyOf, branch, changelog, changeset, environment, expression, not @ line 43, column 21.
       environment name: 'CONTINUE', value: 'yes'
       ^

      The whole block looks like this

      stage('stage') {
        when {
          environment name: 'CONTINUE', value: 'yes'
        }
        steps {
          do something
        }
      }
      

            abayer Andrew Bayer
            riffert Waldemar Wukowa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: