How does one configure webhooks in BitBucket.org to trigger TeamCity builds?
TeamCity provides the Deployment type of build configuration. Build configurations which perform deploying to some environment can be marked with this type: these are usually build configurations that have snapshot or artifact dependencies on the builds whose results they deploy.
Use the TeamCity REST API:
Run build
permissionCreate a new webhook on BitBucket to the prepared URL
http://username:[email protected]/httpAuth/app/rest/vcs-root-instances/commitHookNotification?locator=vcsRoot:(type:jetbrains.git,count:99999),property:(name:url,value:bitbucket.org/bitbucketusername/repo.git,matchType:contains),count:99999
username
,password
with the user you just createdteamcity.server.address
, bitbucketusername
and repo
with your repo values,See docs for more information:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With