jenkins password reset

Posted szllq2000

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jenkins password reset相关的知识,希望对你有一定的参考价值。

 
0. SSH to server
1. Edit /opt/bitnami/apps/jenkins/jenkins_home/config.xml

2. set userSecurity to false: <userSecurity>false</userSecurity>

3. delete
<authorizationStrategy> and <securityRealm>

4. /etc/init.d/bitnami restart

Now Jenkins should be open:

5. Select Configure Jenkins,
    "Enable Security", 
      "Use Jenkin‘s own database"
      "Allow users to sign up"

6. Under Authorization, select:  "Matrix-based security"
   and add users and give them all permissions, 
   and remove all permissions from ‘anonymous‘

To Reset individual password:
1. Go to /opt/bitnami/apps/jenkins/jenkins_home/users/gmhawash
2. Edit config.xml file
3. Remove the passwordHash tag (you can now log in without password)

 

以上是关于jenkins password reset的主要内容,如果未能解决你的问题,请参考以下文章