• jenkins全局安全配置-授权策略,误操作将设置为遗留模式,导致无全部管理员权限,修改config.xml的<authorizationStrategy 为以下


      <authorizationStrategy class="com.michelin.cio.hudson.plugins.rolestrategy.RoleBasedAuthorizationStrategy">
        <roleMap type="globalRoles">
          <role name="admin" pattern=".*">
            <permissions>
              <permission>hudson.model.View.Delete</permission>
              <permission>hudson.model.Computer.Connect</permission>
              <permission>hudson.model.Run.Delete</permission>
              <permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains</permission>
              <permission>hudson.model.Computer.Create</permission>
              <permission>hudson.model.View.Configure</permission>
              <permission>hudson.model.Computer.Build</permission>
              <permission>hudson.model.Item.Configure</permission>
              <permission>hudson.model.Hudson.Administer</permission>
              <permission>hudson.model.Item.Cancel</permission>
              <permission>hudson.model.Item.Read</permission>
              <permission>com.cloudbees.plugins.credentials.CredentialsProvider.View</permission>
              <permission>hudson.model.Computer.Delete</permission>
              <permission>hudson.model.Item.Build</permission>
              <permission>org.jenkins.plugins.lockableresources.LockableResourcesManager.Unlock</permission>
              <permission>hudson.scm.SCM.Tag</permission>
              <permission>hudson.model.Item.Move</permission>
              <permission>hudson.model.Item.Discover</permission>
              <permission>hudson.model.Hudson.Read</permission>
              <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update</permission>
              <permission>hudson.model.Item.Create</permission>
              <permission>hudson.model.Item.Workspace</permission>
              <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete</permission>
              <permission>hudson.model.Computer.Provision</permission>
              <permission>hudson.model.Run.Replay</permission>
              <permission>hudson.model.View.Read</permission>
              <permission>org.jenkins.plugins.lockableresources.LockableResourcesManager.View</permission>
              <permission>hudson.model.View.Create</permission>
              <permission>hudson.model.Item.Delete</permission>
              <permission>hudson.model.Computer.Configure</permission>
              <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create</permission>
              <permission>hudson.model.Computer.Disconnect</permission>
              <permission>org.jenkins.plugins.lockableresources.LockableResourcesManager.Reserve</permission>
              <permission>hudson.model.Run.Update</permission>
            </permissions>
            <assignedSIDs>
              <sid>admin</sid>
            </assignedSIDs>
          </role>
          <role name="test" pattern=".*">
            <permissions>
              <permission>hudson.model.Hudson.Read</permission>
              <permission>hudson.scm.SCM.Tag</permission>
              <permission>hudson.model.View.Read</permission>
            </permissions>
            <assignedSIDs>
              <sid>chenshichao</sid>
            </assignedSIDs>
          </role>
        </roleMap>
        <roleMap type="slaveRoles"/>
      </authorizationStrategy>
    View Code
  • 相关阅读:
    CF519E
    Visual Studio 2017更新内容记录
    MSSQL导入数据时,出现“无法截断表 因为表正由Foreign key引用”错误
    使用NeatUpload控件实现ASP.NET大文件上传
    jquery 图片无缝切换
    less 能加快css编写?
    jquery 分页控件(二)
    jquery 分页控件(一)
    jquery仿天猫商城左侧导航菜单
    jquery 图片放大
  • 原文地址:https://www.cnblogs.com/testgo/p/15171162.html
Copyright © 2020-2023  润新知