如何在BitBucket.org中配置Webhooks以触发TeamCity构建?
使用TeamCity REST API:
Run build
permissionCreate a new webhook on BitBucket to the prepared URL
http://username:password@teamcity.server.address/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,更多信息请参考文档:
count:99999
,并且通过 URL 路径的一部分匹配 VCS 根。 - Dmitriusan