如何使 BitBucket.org 的提交触发 TeamCity 构建?

5

如何在BitBucket.org中配置Webhooks以触发TeamCity构建?

1个回答

6

使用TeamCity REST API:

  1. Create a user on your TeamCity server with Run build permission
  2. Create 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
    
    • Replace username,password with the user you just created
    • Replace teamcity.server.address, bitbucketusername and repo with your repo values,

更多信息请参考文档:


你的回答有点复杂,因为它两次提到了 count:99999,并且通过 URL 路径的一部分匹配 VCS 根。 - Dmitriusan

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接