1

I want to disable security in jenkins. I stopped the service, edited $JENKINS_HOME/config.xml as given in https://wiki.jenkins.io/display/JENKINS/Disable+security and https://wiki.jenkins.io/display/JENKINS/Disable+security

But whenever i restart, the content is getting replaced with initial value. I tried doing the same in ~/.jenkins directory also. But still everytime i restart, its getting replaced. Not able to understand why this is happening.

Any help would be appreciated. Thanks in advance.

Sarath
  • 1,438
  • 4
  • 24
  • 40

1 Answers1

0

had the same issue. im not 100% sure, but in multiple tries i found that:

cp -f edited_config.xml /var/lib/jenkins/config.xml
sudo systemctl restart jenkins.service
sudo ./install_plugins.sh $(cat plugins.txt | tr '\n' ' ')
sudo systemctl restart jenkins.service

bug did not happened

but when i didnt restart jenkins between config file editing and install plugins, i sew this bug.

cp -f edited_config.xml /var/lib/jenkins/config.xml
sudo ./install_plugins.sh $(cat plugins.txt | tr '\n' ' ')
sudo systemctl restart jenkins.service

hope it is helpful

AviadP.
  • 1
  • 1
  • 1
  • 3