Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Required Build settings for Teamcity

devo666 March 24, 2022

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. 

 

 

2 answers

0 votes
Andy Nguyen February 8, 2023

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>
0 votes
Arthur Senko August 4, 2022

Hi there, have you managed to resolve this issue? I have exactly the same question..

Arthur Senko August 4, 2022

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events