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

Evaluate environment variables in declarative stage conditions

      It would be super useful to allow the evaluation of environment variables and possibly also properties in when {} blocks, so that one define / and or use global properties to decide whether or not certain stages should run. Idea:

      when {
        any {
          branch env.BRANCH_NAME
          changelog properties.changeLog
        } 
      } 
      

       

          [JENKINS-55083] Evaluate environment variables in declarative stage conditions

          There are no comments yet on this issue.

            Unassigned Unassigned
            thomaskeller Thomas Keller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: