码迷,mamicode.com
首页 > 其他好文 > 详细

jenkins 忘记密码

时间:2014-10-10 12:59:24      阅读:233      评论:0      收藏:0      [点我收藏+]

标签:io   文件   sp   on   代码   ad   bs   as   用户   

 

配置文件位置 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/用户文件夹

重新注册用户

 

jenkins 忘记密码

标签:io   文件   sp   on   代码   ad   bs   as   用户   

原文地址:http://www.cnblogs.com/duxiaobai/p/4015296.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!