Show in GitLab TeamCity builds status

南笙酒味 提交于 2019-12-07 08:05:56

问题


I've managed to configure TeamCity to automatically pull the new checked-in changes from GitLab and build it.

Next step I would like that the build status icon in GitLab reflects the build status from TeamCity.

At the moment each build TeamCity builds, GitLab continues to show "build:skipped". As I understand this is because it's not run with Gitlab CI and that my repo misses gitlab-ci.yml. I did setup the TeamCity CI service for the project but it didn't help with anything. Maybe I'm misunderstanding the purpose of this service.

Is there a way to change the default build tracker from GitLab-CI to TeamCity so that I can see the build status from TeamCity in GitLab as well?


回答1:


To view your build status on GitLab, you need to setup a commit status publisher feature for your build configuration. The commit status publisher plugin is open source and located on GitHub

Currently, it does not have GitLab support out-of-the-box, but we have received a pull request that implements it. We have not yet merged it to the plugin, so you can either wait for the pr to be merged (watch the request in the tracker here), or you can build the plugin from the branch with the pr included and install it on your server.




回答2:


With TeamCity 10 the Commit Status Publisher build feature is deployed with the default installation. Also GitLab is supported now out of the box. Enter the URL of your server and your private token and it will work like a charm.



来源:https://stackoverflow.com/questions/36172292/show-in-gitlab-teamcity-builds-status

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!