I want to set up my bitbucket PRs to only be able to be merged when a certain build completes on my teamcity build server. There is a "Required Builds" option on the repo but I don't know what value to put into the "Add Builds" section of the form. The documentation says:
Add any build keys here that will need to successfully pass before merging a pull request. The build key will depend on the CI tool used to generate the build.
But I don't know what the build key is for a build in teamcity. I tried the name and the id but neither work.
Hello, I was able to figure this out by using `buildTypeId` URL param value from the TeamCity build URL. You can grab the TeamCity build URL from a Pull Request's build tab.
/viewLog.html?buildId=0000&buildTypeId=<use this value for the build name>
Hi there, have you managed to resolve this issue? I have exactly the same question..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have just found a workaround: you can just configure "Commit status publisher" build feature in TC and then just set "minimum successful builds" in "merge-checks" section in Bitbucket.
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.