gitlab webhook for teamcity build based on commit change

gitlab webhook for teamcity build based on commit change

我可以有一个示例 gitlab webhook,它可以在每次发生提交更改时访问 teamcity。 http://teamcity.int:8080/app/rest/vcs-root-instances/commitHookNotification?locator=vcsRoot:(id:$vcsrootId) 但遇到 401 错误: 挂钩执行成功但返回 HTTP 401 需要身份验证手动登录转到“/login.html”页面

已添加在 teamcity 中为 webhook 身份验证创建的访问令牌

将 teamcity 登录名和令牌放入 url:

http://username:token@teamcity.localdomain/app/rest/vcs-root-instances/commitHookNotification?locator=vcsRoot:(id:$TEAMCITY_VCS_ID)