如何在詹金斯的某个用户级别阻止某些乔布斯? [英] How to block some Jobs for some user level in Jenkins?

查看:64
本文介绍了如何在詹金斯的某个用户级别阻止某些乔布斯?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要阻止一些用户级别的工作,例如我有3个工作:

I want a block some jobs for a user level for example I have 3 jobs:

Job1(所有注册用户都可以执行此操作). Job2(仅某些用户可以执行此操作) Job3(所有注册用户都可以执行此操作.)

Job1 (All the register user can execute this). Job2 (Only some user can execute this) Job3 (All the register user can execute this).

推荐答案

将全局安全性(http://<your_server>/configureSecurity/?)设置为与大多数作业匹配的配置(启用Job Build),然后为其他作业启用Project-based security(通过jon配置),然后根据需要通过禁用Job Build进行设置.

Set the Global Security (http://<your_server>/configureSecurity/?) to the configuration that matches most jobs (enable Job Build) and then enable Project-based security for the other jobs (via the jon configuration) and set up as required by disabling Job Build.

User/group to add:中输入用户名,然后根据需要进行配置.在这种情况下,我只能将控制权限于两个用户

Enter the user name in User/group to add: and then configure as required. In this case I've limited control to two users

这篇关于如何在詹金斯的某个用户级别阻止某些乔布斯?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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