Can a TeamCity trigger create new Git branches / tags?

I managed to get a TeamCity build trigger for new changes in branches, but not when creating a branch or tag. I would like to automatically run the assembly when I create the version tag.

+8
teamcity
source share
1 answer

@stevechapman, thanks

Sorry, I misunderstood this question. If you want to run the assembly as soon as the tag is created, teamcity does not currently have a function that comes out of the box. You can:

  • Set up a git commit binding that starts the build target after creating the tag
  • Or you can create a custom teamcity goal that scans the git repository for newly created tags and runs if you find them.
  • If you create a tag in the build task in teamcity, you can create a dependent goal that will run after your original goal and work with the tag that you just created.
+3
source share

All Articles