NewThis is a live doc! Anyone with edit access can make updates in real time without having to publish.
让 Teamcity 支持同步运行状态到 Gitlab

https://www.jetbrains.com/help/teamcity/commit-status-publisher.html#GitLab

进入对应 Build 的 Build Configuration,添加「Commit status publisher」Build Feature

image-20241121-081745.png

image-20241121-081853.png
  • Publisher 选择 Gitlab

  • Authentication Type 根据实际情况给 Token 或 Access Token

    • 如果直接是利用 OAuth 授权的,那么选 Refreshable access token 即可,点击 Acquire 即可读取 Gitlab Token

  • Gitlab API URL 可以留空(默认会从配置的 VCS Root 读取)