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?
The views are stored in the main config. xml file ( JENKINS_HOME or jenkins user home directory).
Configuration files are stored directly in the $JENKINS_HOME directory. ./config. xml is the main Jenkins configuration file.
$JENKINS_HOME is where all Jenkins-based installations store configuration, build logs, and artifacts.
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% ).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With