Gitlab integration - notify multiple build types

I have two build types to be triggered on non-default branches and one for default branch.

Yet, Gitlab “Teamcity Integration” only allows one build type to be triggered. I hoped that the “VCS Root” of the chosen build type would be updated triggering any build types with vcs triggers on it as well, but it doesn't. Only the specific build types is triggered and the others only trigger after the polling interval.

Is there any solution for this?

Thanks

0
5 comments
Hi,

By GitLab integration, do you mean a GitLab connection set up as described here: https://www.jetbrains.com/help/teamcity/2024.03/configuring-connections.html#GitLab?

Please provide more details on the behavior you are describing, using screenshots of the configurations you have, and which configuration shows which behavior, etc. You can upload it to https://uploads.jetbrains.com/ and share the upload ID to share it confidentially.

Best regards,
Anton
0

No, I meant the JetBrains integration for Gitlab, to push VCS changes instead of waiting for polling.

But I also found this now: https://www.jetbrains.com/help/teamcity/configuring-vcs-post-commit-hooks-for-teamcity.html#GitLab

So I guess my statement of “I hoped that the “VCS Root” of the chosen build type would be updated triggering any build types with vcs triggers on it as well” is actually described here as a use case for default webhook to VCS Root Locator.

The JetBrains Integration is for triggering immediately a specific build (and only one).

Is my understanding accurate now?

0
Hi,

I think I understand what you mean. In this case, yes. When you set up a webhook, it reports changes to TeamCity immediately without waiting for the polling. Depending on the changes, the VCS trigger may or may not start a build (it will start if the changes satisfy the VCS trigger rules). 
The integration, on the other hand, sends the API request directly to buildQueue to start a build of a specified build configuration ID. Only one build configuration ID can be specified.

Best regards,
Anton
1

Thanks for the confirmation, I'll try to get a normal webhook setup

0

Please sign in to leave a comment.