2

Trying to change Jenkins config.xml properties on Mac machine. File is locked. Also tried to unlock the file using Get Info and nothing is working.

Still unable to unlock the file for edit. I do not want to do this from terminal even though that is an option.

Anyone has come across similar situation?

Jayan
  • 18,003
  • 15
  • 89
  • 143
DJD
  • 143
  • 2
  • 10
  • What you mean by file is locked? You need to use appropriate account to change the file. The web ui is good enough to make changes to that file; what exactly you are trying to change.. – Jayan Jun 02 '15 at 07:00
  • Hi Jayan, I was trying to set up Configuration and I have set up Security settings from the browser using http://localhost. Upon saving the configuration I lost access to configuration management section. Hence to revert it, one of the posts says to edit the Config.XML file where the security setting were set to true and to make it false. Hence trying to edit that .XML file manually, which system is not allowing me to do. – DJD Jun 02 '15 at 07:08
  • Hello, I am unable to replicate the issue you are talking about. I am working on Mac too. The steps that I am following are: Finder --> Go --> User --> cmd+shift to see Jenkins --> config.xml and I am able to edit the file. Please elaborate on your issue. – Lovina Hajirawala Mar 10 '22 at 07:14

1 Answers1

-2

If you install Jenkins with the OSX installer, all the files belong to the jenkins user.

So if you want to edit the config.xml file, you have to change the permissions.

The best solution is to use the terminal (if you can):

sudo su jenkins - (switch on the jenkins user)
vim config.xml (edit the config.xml file)
Bruno Lavit
  • 10,184
  • 2
  • 32
  • 38