在GitLab中显示TeamCity的构建状态 [英] Show in GitLab TeamCity builds status

查看:64
本文介绍了在GitLab中显示TeamCity的构建状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设法将TeamCity配置为自动从GitLab提取新的签入更改并进行构建.

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

下一步,我希望GitLab中的构建状态图标反映TeamCity的构建状态.

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

在每次构建TeamCity时,GitLab继续显示"build:skipped".据我了解,这是因为它不是与Gitlab CI一起运行的,并且我的仓库缺少gitlab-ci.yml.我确实为该项目设置了TeamCity CI服务,但它没有任何帮助.也许我误会了这项服务的目的.

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.

是否可以将默认的构建跟踪器从GitLab-CI更改为TeamCity,以便我也可以在GitLab中查看TeamCity的构建状态?

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?

推荐答案

要在GitLab上查看构建状态,您需要为构建配置设置提交状态发布者功能.提交状态发布者插件是开源的,位于 GitHub

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

当前,它没有现成的GitLab支持,但是我们收到了实现请求的请求.我们尚未将其合并到插件中,因此您可以等待pr合并(在跟踪器此处),也可以从包含pr的分支机构构建插件,然后将其安装在服务器上.

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.

这篇关于在GitLab中显示TeamCity的构建状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆