Thursday, June 20, 2019

How to back up Jenkins Jobs and Configurations

As you all know Jenkins does not use a database to store its configuration, It uses XMLs files to store. It is very important to take back up all jobs, configs, logs and plug-ins.

Jenkins thin backup plug-in is what we will be using for taking backups of Jenkins data.

Install plug-in:
It backs up all the data based on your schedule and it handles the backup retention as well.
To get started, first install the plugin.
1. Go to Manage Jenkins –> Manage Plugins
2. Click the Available tab and search for “Thin backup”



















3. install plug-in and restart Jenkins.

How to take backups?

As plug-in is installed, we need to configure how we will be doing backups in Jenkins.

1. Go to manage Jenkins->ThinBack
2. Click on settings. Enter info as needed for the backup.

3. after saving, click Backup Now link to run the back up to make sure it is creating data where needed.


4. Now you should see the back up folder.

How to Create Quality Gate in SonarQube and integrate with GitHub Actions | SonarQube Integration with GitHub Actions | Automate Code Scan using SonarQube In GitHub Actions and Force build to Fail or Pass

Pre-requisites: Make sure SonarQube is up and running Make sure Java Project is setup in GitHub SonarQube is already integrated with GitHub ...