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

Allow environment variables with Bitbucket Server Integration Pipeline

    Details

    • Similar Issues:

      Description

      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 

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              khughes Kristy Hughes
              Reporter:
              bcoveny Bruce Coveny
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: