Hi, is there a way to get the target/destination branch on a plan branch script that was created via a pull request. Basically, I want to know the target branch of the pull request from within the default job script task.
The idea would be to change behavior if this is a pull request to merge into "uat" vs. "master".
Figured this out by enabling merging on the Bamboo plan under branches. Then after that, new environment variables became available, one of which was ${bamboo.planRepository.integrationBranch.branchName} , which gave me the target/destination branch information I was looking for. Cheers!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.