如何在每詹金斯项目设置凭据? [英] How to setup credentials for every project in Jenkins?

查看:126
本文介绍了如何在每詹金斯项目设置凭据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在詹金斯一些项目10个,每10个不同的客户。所以,我需要为我所有的项目凭证,以便每个客户只能访问自己的项目。

I have some 10 projects in my Jenkins , each for 10 different clients . So i need to create credentials for all my projects , so that each client can access only their project .

是否有任何插件来实现我的要求。??

Is there any plugin to achieve my requirement .??

请帮助!

推荐答案

选择基于项目的矩阵授权策略下的全球安全

Select "Project-based Matrix Authorization Strategy" under Global Security

定义普通用户,没有访问权限的项目在这个水平。

Define general users, without access to projects at this level.

然后在每个项目选择启用基于项目的安全,在这里你可以给单个用户另外的权限,如查看和执行工作的能力。

Then on per-project select "Enable project-based security", and here you can give individual users addition permissions, such as ability to view and execute the job

编辑:

配置全局安全基于项目的矩阵授权


  • 确保匿名认证没有任何其他权限。

  • 给的匿名的:结果

    • 工作探索(这将重定向非登录用户登录页)。

    • Make sure Anonymous and Authenticated don't have any other permissions.
    • Give Anonymous:
      • Job Discover (this will redirect non-logged in users to login page).

      • 总体读(没有此权限,其他什么都可以)。

      • 查看读,可选的(不这样做,他们将无法看到自定义的意见,只是所有视图)。

      • Overall Read (without this permission, nothing else will work).
      • View Read, optional (without this, they won't see custom views, just the 'all view').

      作业配置启用基于项目的安全


      • 给的客户端1 的:结果

        • 招聘读(这将允许查看此特定作业,没有别的)。

        • 的要求(建设,工作区,推广等)给予额外的权限。

        • Give client1:
          • Job Read (this will allow to view this particular job, and nothing else).
          • Give additional permissions as required (build, workspace, promote, etc).

          这篇关于如何在每詹金斯项目设置凭据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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