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.
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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.