Can't find config.xml anywhere within Jenkins folder

不羁岁月 提交于 2019-12-04 14:49:19
Aharbil

In Windows 7 I've had the same problem and after looking I found that the config file is in two different folders:

  • C:\Users\user name\\.jenkins
  • C:\Windows\System32\config\systemprofile\\.jenkins

changing the first one didn't do much, but deleting the second did the job.

By default Jenkins home directory (JENKINS_HOME) is set to ~/.jenkins, this is the location where you can find your Jenkins XML config file.

On Windows your user home directory is under C:\Users\USERNAME (equivalent to %HOME%). This folder may be hidden (since it has dot in it), so when browsing the files, make sure your program shows hidden files or type the direct path in your Path/Address bar.

Here is the brief structure of XML files within Jenkins home folder:

JENKINS_HOME
 +- config.xml     (jenkins root configuration)
 +- *.xml          (other site-wide configuration files)
 +- jobs
     +- [JOBNAME]      (sub directory for each job)
         +- config.xml     (job configuration file)

See: Administering Jenkins - JENKINS_HOME directory

If not done, try defining JENKINS_HOME in setclasspath.sh. bounce tomcat, config.xml will be in you JENKINS_HOME.

It's not depend on Win OS or Environment variables (I.e - %HOME% OR JENKINS_HOME)

You can find the confing.xml file where it's installed. It can be in one of the following paths:

  • C:\Program Files\Jenkins
  • C:\Program Files (x86)\Jenkis
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!