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

Allow environment variables with Bitbucket Server Integration Pipeline

XMLWordPrintable

      When creating a pipeline build none of the options allow environment variables. The documentation I found at https://jenkins.io/doc/pipeline/steps/atlassian-bitbucket-server-integration/ states that the branch name should be able to use environment variable, however, it doesn't appear to mark it up.

       

      Hard Coded Example:

      branches: [[name: 'branchname']]

      Results:

      Produces a scan just on branch with name 'branchname'

       

      Environment Example 1:

      branches: [[name: '${ENV_VARNAME}']]

      Result:

      Produces a scan of all branches in all the repoisotry

       

      Environment Example 2:

      branches: [[name: '${env.ENV_VARNAME}']]

       Result:

      Stack Exception 

       

            Unassigned Unassigned
            bcoveny Bruce Coveny
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: