配置文件位置 jenkins/config.xml
<useSecurity>true</useSecurity>// 将true改为false
将下面代码删除
<authorizationStrategy class="hudson.security.GlobalMatrixAuthorizationStrategy">
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.Create:dudu</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.Delete:dudu</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.ManageDomains:dudu</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.Update:dudu</permission>
<permission>com.cloudbees.plugins.credentials.CredentialsProvider.View:dudu</permission>
<permission>hudson.model.Computer.Build:dudu</permission>
<permission>hudson.model.Computer.Configure:dudu</permission>
<permission>hudson.model.Computer.Connect:dudu</permission>
<permission>hudson.model.Computer.Create:dudu</permission>
<permission>hudson.model.Computer.Delete:dudu</permission>
<permission>hudson.model.Computer.Disconnect:dudu</permission>
<permission>hudson.model.Hudson.Administer:anshanshan</permission>
<permission>hudson.model.Hudson.Administer:dudu</permission>
<permission>hudson.model.Hudson.ConfigureUpdateCenter:dudu</permission>
<permission>hudson.model.Hudson.Read:anshanshan</permission>
<permission>hudson.model.Hudson.Read:dudu</permission>
<permission>hudson.model.Hudson.RunScripts:dudu</permission>
<permission>hudson.model.Hudson.UploadPlugins:dudu</permission>
<permission>hudson.model.Item.Build:anshanshan</permission>
<permission>hudson.model.Item.Build:dudu</permission>
<permission>hudson.model.Item.Cancel:dudu</permission>
<permission>hudson.model.Item.Configure:anshanshan</permission>
<permission>hudson.model.Item.Configure:dudu</permission>
<permission>hudson.model.Item.Create:dudu</permission>
<permission>hudson.model.Item.Delete:dudu</permission>
<permission>hudson.model.Item.Discover:dudu</permission>
<permission>hudson.model.Item.Read:anshanshan</permission>
<permission>hudson.model.Item.Read:dudu</permission>
<permission>hudson.model.Item.Workspace:dudu</permission>
<permission>hudson.model.Run.Delete:dudu</permission>
<permission>hudson.model.Run.Update:dudu</permission>
<permission>hudson.model.View.Configure:dudu</permission>
<permission>hudson.model.View.Create:dudu</permission>
<permission>hudson.model.View.Delete:dudu</permission>
<permission>hudson.model.View.Read:dudu</permission>
<permission>hudson.scm.SCM.Tag:dudu</permission>
</authorizationStrategy>
删除jenkins/USERS/用户文件夹
重新注册用户
原文地址:http://www.cnblogs.com/duxiaobai/p/4015296.html