Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-17916

$BITBUCKET_BRANCH variable has no value while running in common step

    XMLWordPrintable

Details

    Description

      Hi, I tried to use $BITBUCKET_BRANCH variable in custom pipelines step and the variable has no value. However it works if I access $BITBUCKET_BRANCH variable in default step.

      image: maven:3.3.9
      
      pipelines:
        custom:
         Build-Deploy-War:
            - step:
                name: Build Application          
                caches:
                  - maven
                script:
                  - echo $BITBUCKET_BRANCH # no value printed :(
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            b50f56f0d1ce Ruslanas Vitiutinas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: