Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20508

Variable shortPlanName contains the name of the branch

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 6.6.3, 6.8.1, 6.9.1
    • Variables
    • None

    Description

      Issue Summary

      The variable shortPlanName contains the name of the branch if the build is running in the branch.

      Steps to Reproduce

      1. Create a job
      2. Go to Plan Configuration > Branches tab and click on the button Create plan branch
      3. Create a Script Task and print the content of the variable shortPlanName, e.g.:
        echo ${bamboo.shortPlanName}
        
      4. Run this build with the branch created in step 2

      Expected Results

      The variable shortPlanName should contain only the name of the plan.

      key: [shortPlanName] value: [This is the name of the plan] type: CUSTOM
      

      Actual Results

      The variable shortPlanName contains the name of the branch.

      key: [shortPlanName] value: [This is the name of the branch] type: CUSTOM
      

      Workaround

      Currently, the workaround is to split the variable planName, inside a script task, to get only the name of the plan, e.g.:

      echo ${bamboo.planName} | cut -d "-" -f 3
      

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kmiranda Karel Miranda
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: