Variable shortPlanName contains the name of the branch

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Low
    • None
    • Affects Version/s: 6.6.3, 6.8.1, 6.9.1
    • Component/s: Variables
    • None
    • Severity 3 - Minor

      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
      

       

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

              Created:
              Updated:
              Resolved: