D.R.
D.R.

Reputation: 21224

Prevent a TeamCity build configuration to run for certain branches

Is there a way to configure a build configuration in a way that it may run only for certain branches. I'm not only talking about automatic triggers, I also want to prevent users from manually triggering a run for other branches.

Upvotes: 1

Views: 1470

Answers (2)

Jeff Gruenbaum
Jeff Gruenbaum

Reputation: 403

To prevent users from manually triggering a build, you need to set user permissions. This can be done under Administration > users/groups > group name/username > roles.

If you want them to only view the project, you can assign the role Project Viewer. You can also make your own roles with your own set of rules by clicking Administration > roles.

Upvotes: 0

infojolt
infojolt

Reputation: 5418

Under the version control settings for a build configuration you can add branch filters:

branch filters

Upvotes: 2

Related Questions