jeudi 26 mars 2015

Integrating GitLab with TeamCity


Vote count:

0




Since GitLab 7.6, or thereabouts, there is a new option to use TeamCity directly from GitLab projects. In the setup there is this message:



The build configuration in Teamcity must use the build format number %build.vcs.number% you will also want to configure monitoring of all branches so merge requests build, that setting is in the vsc root advanced settings.



I'm not sure how this works. Lets say I have a repository Foo.


I have setup a build on TeamCity to listen to Foo with branch specification: +:refs/pull/*/merge


I then fork Foo in gitlab as FooFork, make a change, then request a merge FooFork -> Foo.


But nothing happens to test this merge, which is what I was expecting GitLab to do. If I accept the merge than the build server jumps into action (immediately) and builds twice (master and /ref/master).


I've also set the build configuration to use exactly: %build.vcs.number% as the build number as prescribed, but gitlab doesn't seem to give me any information about the build result.


So I'm a bit confused really as to what exactly this GitLab service does.


I'm currently running GitLab 7.9 and TeamCity 8.1.4



asked 42 secs ago







Integrating GitLab with TeamCity

Aucun commentaire:

Enregistrer un commentaire