1./root/.jenkins/config.xml <useSecurity>true</useSecurity> <authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy"> <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:admin</permission> <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:admin</permission> <permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:admin</permission> <permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:admin</permission> <permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:admin</permission> <permission>hudson.model.Computer.Build:admin</permission> <permission>hudson.model.Computer.Configure:admin</permission> <permission>hudson.model.Computer.Connect:admin</permission> <permission>hudson.model.Computer.Create:admin</permission> <permission>hudson.model.Computer.Delete:admin</permission> <permission>hudson.model.Computer.Disconnect:admin</permission> <permission>hudson.model.Hudson.Administer:admin</permission> <permission>hudson.model.Hudson.ConfigureUpdateCenter:admin</permission> <permission>hudson.model.Hudson.Read:admin</permission> <permission>hudson.model.Hudson.Read:anonymous</permission> <permission>hudson.model.Hudson.Read:dubbodev</permission> <permission>hudson.model.Hudson.RunScripts:admin</permission> <permission>hudson.model.Hudson.UploadPlugins:admin</permission> <permission>hudson.model.Item.Build:admin</permission> <permission>hudson.model.Item.Build:dubbodev</permission> <permission>hudson.model.Item.Cancel:admin</permission> <permission>hudson.model.Item.Cancel:dubbodev</permission> <permission>hudson.model.Item.Configure:admin</permission> <permission>hudson.model.Item.Configure:dubbodev</permission> <permission>hudson.model.Item.Create:admin</permission> <permission>hudson.model.Item.Create:dubbodev</permission> <permission>hudson.model.Item.Delete:admin</permission> <permission>hudson.model.Item.Delete:dubbodev</permission> <permission>hudson.model.Item.Discover:admin</permission> <permission>hudson.model.Item.Discover:dubbodev</permission> <permission>hudson.model.Item.Move:dubbodev</permission> <permission>hudson.model.Item.Read:admin</permission> <permission>hudson.model.Item.Read:dubbodev</permission> <permission>hudson.model.Item.Workspace:admin</permission> <permission>hudson.model.Item.Workspace:dubbodev</permission> <permission>hudson.model.Run.Delete:admin</permission> <permission>hudson.model.Run.Replay:admin</permission> <permission>hudson.model.Run.Update:admin</permission> <permission>hudson.model.View.Configure:admin</permission> <permission>hudson.model.View.Create:admin</permission> <permission>hudson.model.View.Delete:admin</permission> <permission>hudson.model.View.Read:admin</permission> <permission>hudson.scm.SCM.Tag:admin</permission> </authorizationStrategy> <securityRealm class="hudson.security.HudsonPrivateSecurityRealm"> <disableSignup>false</disableSignup> <enableCaptcha>false</enableCaptcha> </securityRealm> 这是允许admin登陆管理任何项目 2. Role Strategy Plugin插件 实现不同用户组显示对应视图views中不同的jobs 讲解的很详细
时间: 2024-10-11 21:29:06