How to hide TeamCity configuration for selected users?

I have one TeamCity Dac.Test project that contains 3 configurations: DEV , QA , PROD .

enter image description here

I also have some users associated with their Roles. Is it possible to hide / show configuration certificates for selected users or groups?

For example: Users associated with the group: Testers can see the QA configuration, but not the PROD and DEV .

+6
source share
2 answers

There is no way to manage user permissions for each assembly; this is available only at the project level. You can create a subproject in a Dac.Test project to satisfy this

If you are looking for a way to stop people from mistaking this build, the following approach will work.

This method uses a tooltip that will be displayed after clicking the start button, and user input is required, confirming that they are intended to start the assembly. No one can run this assembly by accident.

  • Go to the build configuration in the TeamCity user interface.
  • Go to the menu "Configuration Settings" β†’ "Options" β†’ Add a new parameter
  • Enter something like Confirmation as the parameter name
  • Then next to "Spec:" click the "Change ..." button
  • Set the parameter as shown in the following screenshot:

enter image description here

Now you will be prompted and ask for confirmation when you press the start button. The user will have to enter β€œYES” in the prompt window that appears, any other value will stop the user: enter image description here

+8
source

This is best done using TeamCity's built-in management. Roles allow you to set minor permissions for users and groups. One potential problem is that roles are related to projects (rather than assembly configurations). You need to create a separate Dac.Test QA project + configuration and grant your Testers necessary privileges. You also need to make sure that they are denied all privileges for the Dac.Test project.

+3
source

Source: https://habr.com/ru/post/943542/


All Articles