-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
6.6.3, 6.8.1, 6.9.1
-
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
- Create a job
- Go to Plan Configuration > Branches tab and click on the button Create plan branch
- Create a Script Task and print the content of the variable shortPlanName, e.g.:
echo ${bamboo.shortPlanName}
- 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
- duplicates
-
BAM-17810 shortPlanName contains branch name for plan branches
- Closed