Understanding Jenkins UI. Create list view names, what files to… | by Naman Sharma

Create list view names, what files to backup, restore, and install Grafana and Prometheus plugins.

Jenkins UI.

Jenkins UI is designed to facilitate continuous integration and delivery. Here are the key components and features of the Jenkins UI:

  • Dashboard
  • Job Configuration
  • Build History
  • Build Executor Status
  • Node Management
  • Plugins
  • User Management
  • System Configuration
  • Views
  • Pipelines
  • Credentials Management
  • Notifications

Administering Jenkins :

  1. Backup
  2. Restore
  3. Monitor

How to Create a Backup and Restore?

Backups are of two types either Full or snapshots.$JENKINS_HOME consisting of two files config.xml and Jobs which need to be backup.

config.xml:

Contains the main Jenkins configuration.

Essential for restoring Jenkins settings and configurations.

Jobs Directory:

Contains individual job configurations and data.

Critical for restoring job definitions, building histories, and associated data.

Backups can be created with various methods either Filesystem snapshot, Plugins for Backups, and a shell script that backup your instances.(https://github.com/sue445/jenkins-backup-script)

Let us create a backup using Plugins :

Step 1: Log in to Jenkins and Go to Manage Jenkins.

Step 2: Go to Plugins and search for backup. Select the backup of your choice and install it.

Install the backup.
We can see that it is successfully installed.

Step 3: To use the backup, create a directory first. Login into Jenkins using ssh and create a directory or directly creat is /var/lib/jenkins folder.

mkdir backup.
copy the path of the folder.

Step 4: Go to manage Jenkins, look for a thin backup in the tools and actions column, and create it.

It will create a backup because we don’t have any data, or pipelines in Jenkins.

Let us now implement how to monitor Jenkins using Prometheus and Garfana

Step 1: Using Plugins let us install Prometheus metrics.

Install and restart Jenkins.

Step 2: Configure the Prometheus plugin.

Go to Configure system.
Change setting according to your requirement by default Prometheus run on Prometheus endpoint.
jenkinsip/prometheus

Thankyou for reading…