You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
I want to get the branch's PR's target branch.
This variable `bamboo.repository.pr.targetBranch` gives ${bamboo.repository.pr.targetBranch}: bad substitution
This variable available only for plan branches which were created when PR opened at repository. Please be sure you have this option selected at Plan branch management screen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's available if default repository of plan supports PR: Bitbucket Server or Cloud
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What type of repository configured at Bamboo? It should be Bitbucket Cloud repo, not regular Git repository
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The repo was using git. I have not changed it to Bitbucket Cloud.
I still get the same error
`line 2: ${bamboo.repository.pr.targetBranch}: bad substitution`
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can see the PR option at the Plan branch management screen
I have selected it. Still same error
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You're on good path. Once you have repo with Bitbucket Cloud type and enabled option to create plan branch when PR opened.
Next time Bamboo detects pull request at repo it will create plan branch, every build at this plan branch will have variables you mentioned.
PR detection occurs every 3 minutes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now I have another problem. After I change the repo. It is not checking out the branch. It is only on master.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.