如何隐藏所选用户的TeamCity配置? [英] How to hide TeamCity configuration for selected users?

查看:220
本文介绍了如何隐藏所选用户的TeamCity配置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个TeamCity项目Dac.Test,其中包含3种配置:DEVQAPROD.

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

我也有一些与他们的角色相关联的用户.是否可以为选定的用户或组隐藏/显示某些配置?

Also I have some users associated with their Roles. Is this possible to hide / show certains configurations for selected users or groups?

例如:与组:Testers关联的用户可以看到QA的配置,但不能看到PRODDEV.

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

推荐答案

无法按版本管理用户权限,仅在项目级别可用.您可以在Dac.Test项目中创建一个子项目来满足此需求

There is no way of managing user permissions per-build, this is available on a project level only. You could create a sub-project in the Dac.Test project to cater for this

如果您正在寻找一种方法来阻止人们错误地运行此版本,那么以下方法将起作用.

If you're looking for a way of stopping people from mistakenly running this build, the following approach will work.

此方法使用一个提示框,该提示框在您单击运行按钮后会弹出,还需要用户输入确认它们是否意味着要运行构建. 没有人可以偶然运行此版本

This method uses a prompt box that will pop up after you click the run button, it also needs input from the user confirming that they mean to run the build. No one can run this build by accident

  1. 在TeamCity UI中转到您的构建配置
  2. 从此处转到编辑配置设置"->参数"->添加新参数"
  3. 输入类似确认"之类的参数名称
  4. 然后在规范:"旁边,单击编辑..."按钮
  5. 按照以下屏幕截图所示设置参数:

现在,当您单击运行按钮时,系统将提示您并要求您确认.用户必须在出现的提示框中输入是",其他任何值都将阻止用户进行构建:

You will now be prompted and asked for confirmation when you click the run button. The user will have to enter 'YES' in the prompt box that appears, any other value will stop the user from building:

这篇关于如何隐藏所选用户的TeamCity配置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆