Roles customization

Hi

I want to set up our roles so by default all developers have the "RUN_BUILD" on all projects except for 1 project. Is there any easy way to do this.

Thanks
Colin

6 comments

You probably need to create two roles: one with RUN_BUILD permission and another without (note that to simplify configuration it is possible to include permissions of one role to another). Then you'll be able to assign these roles to users in corresponding projects. Take a look at roles-config.xml file - all roles except system administrator are defined there. You can modify this file without server restart.

--
Pavel Sher

0

Thanks but I don't think that will work for our situation. The problem is, we need to be able to allow users to run all projects except for 3 (There are 94 others with new ones being added all the time). This would mean that we would have to modify the role assignments for projects every time a new project is added so the regular users would be able to "run" these. What I really need is a way to assign roles but have a NOT clause.

For example, If we could say a Developer has RUN_BUILD permissions for all projects EXCEPT for these ones. Currently you can just say that Developers has RUN_BUILD permissions for these projects.

Is there any way to do this?

Thanks
Colin

0

No, there is no way to do this now. However if you create new projects by copying them you can turn on checkbox to copy users roles to new project too. This could simplify administration. As for the feature you requesting, please submit it into our tracker.

--
Pavel Sher

0

Is there any way to modify the permissions on a configuration? In our setup, each project has a formal, stable, and continuous configuration. I would like to limit the number of users who have permission to launch the formal manually in order to minimize the chances of a formal build being launched accidentally.

Thanks,
Ray

0

It is not possible now, in TeamCity roles are assigned per-project and we had no plans to allow to assign them to a build configuration. Feel free to submit a feature request to our tracker.

--
Pavel Sher

0

Please sign in to leave a comment.