Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where does Jenkins store config files for "Views"?

Tags:

jenkins

I have removed some Jenkins views that listed jobs in categories for me. I keep backup of Jenkins filesystem and I now want to restore these views.

Where are the configurations files for Jenkins views stored on filesystem?

like image 598
Sayid Avatar asked May 11 '16 13:05

Sayid


People also ask

Where are Jenkins views stored?

The views are stored in the main config. xml file ( JENKINS_HOME or jenkins user home directory).

Where are Jenkins config files stored?

Configuration files are stored directly in the $JENKINS_HOME directory. ./config. xml is the main Jenkins configuration file.

Is the location where all of the Jenkins configurations logs and builds are stored?

$JENKINS_HOME is where all Jenkins-based installations store configuration, build logs, and artifacts.

Where is Jenkins config file windows?

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% ).


1 Answers

The views are stored in the main config.xml file (JENKINS_HOME or jenkins user home directory).

For my CentOS install, it's in /var/lib/jenkins/config.xml.

Please have a look to the <views> section.

like image 173
Bruno Lavit Avatar answered Oct 06 '22 23:10

Bruno Lavit