几天前,我已经安装了jenkins.exe并创建了一个具有所有角色或访问权限的Admin,并创建了其他只具有读取权限的角色,
现在我面临的问题是直到昨天通过管理员用户我能够看到所有的jekins选项,现在我无法看到配置Jenkins选项
请帮助我,谢谢
答案 0 :(得分:0)
有办法。
首先,导航至$JENKINS_HOME
。如果您在Windows中安装了Jenkins,它通常是C:\Users\your_username\.jenkins
。
如果您使用的是Matrix授权
在<authorizationStrategy>
config.xml
现在,在<authorizationStrategy>
和</authorizationStrategy>
:
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:[your jenkins username]</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:[your jenkins username]</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:[your jenkins username]</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:[your jenkins username]</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:anonymous</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:[your jenkins username]</permission>
<permission>hudson.model.Computer.Build:[your jenkins username]</permission>
<permission>hudson.model.Computer.Configure:[your jenkins username]</permission>
<permission>hudson.model.Computer.Connect:[your jenkins username]</permission>
<permission>hudson.model.Computer.Create:[your jenkins username]</permission>
<permission>hudson.model.Computer.Delete:[your jenkins username]</permission>
<permission>hudson.model.Computer.Disconnect:[your jenkins username]</permission>
<permission>hudson.model.Hudson.Administer:[your jenkins username]</permission>
<permission>hudson.model.Hudson.ConfigureUpdateCenter:[your jenkins username]</permission>
<permission>hudson.model.Hudson.Read:anonymous</permission>
<permission>hudson.model.Hudson.Read:[your jenkins username]</permission>
<permission>hudson.model.Hudson.RunScripts:[your jenkins username]</permission>
<permission>hudson.model.Hudson.UploadPlugins:[your jenkins username]</permission>
<permission>hudson.model.Item.Build:[your jenkins username]</permission>
<permission>hudson.model.Item.Cancel:[your jenkins username]</permission>
<permission>hudson.model.Item.Configure:[your jenkins username]</permission>
<permission>hudson.model.Item.Create:[your jenkins username]</permission>
<permission>hudson.model.Item.Delete:[your jenkins username]</permission>
<permission>hudson.model.Item.Discover:[your jenkins username]</permission>
<permission>hudson.model.Item.Read:anonymous</permission>
<permission>hudson.model.Item.Read:[your jenkins username]</permission>
<permission>hudson.model.Item.Workspace:[your jenkins username]</permission>
<permission>hudson.model.Run.Delete:[your jenkins username]</permission>
<permission>hudson.model.Run.Update:[your jenkins username]</permission>
<permission>hudson.model.View.Configure:[your jenkins username]</permission>
<permission>hudson.model.View.Create:[your jenkins username]</permission>
<permission>hudson.model.View.Delete:[your jenkins username]</permission>
<permission>hudson.model.View.Read:anonymous</permission>
<permission>hudson.model.View.Read:[your jenkins username]</permission>
希望这有帮助