How to Install Jenkins in centos 7
Jenkins is an open source, Java-based automation server that provides an easy way to set up continuous integration and continuous deployment pipeline (CI / CD).
Continuous Integration (CI) is a DevOps practice where team members execute their commitments regularly switching to version control code, after which automation and automation testing are performed. Continuous Delivery (CD) is a series of practices in which code changes are automatically generated, tested, and transferred to production.
This tutorial will walk you through the steps to install Jenkins on the CentOS 7 system using Jenkins’ official site.
Open terminal and the first step is to install Java. Run the following command to install the OpenJDK package:
This command is used to enable the Jenkins repository, importing the GPG key using the curl command:
By this command, the repository is added to the system.
When the repositories are installed completely install the package of Jenkins
This command is to start the service of Jenkins.
To check whether it started successfully run:
Finally, enable the Jenkins service to start on system boot.
For adjusting the firewall, we need to run this command and add the port number 8080 permanently in it so the service won’t be interrupted.
Now, open your browser and access the URL with your domain or IP address and it will take you to this page.
Go to the above-mentioned location and copy the password and paste it in the box then click on continue
In the next windows select the option: Install suggested plugins
Let the package complete its installation.
Now, setup the username and password for accessing Jenkins then click on save and continue.
Here, Jenkins is ready to use.