Jenkins is a Java-based open-source automation tool with plugins designed for ongoing integration. Jenkins is used to constantly develop and test software projects that help developers to incorporate project modifications and make it simpler for users to achieve a new build. The Jenkins allows developers to quickly locate and resolve flaws in a code base and to automatically test their structures. Jenkins can be changed and expanded readily on all operating platforms and various devices, whether OS X, Windows or Linux. It immediately deploys code, produces test reports. During integration and continuous delivery, Jenkins can be configured according to the demands.
Following are the software and hardware requirements for installing Jenkins:
Minimum hardware requirements:
Recommended hardware configuration for a small team:
You must first install JDK. Jenkins promotes JDK8 only at this time. Jenkins can be installed when Java is running. The recent Jenkins package for Windows (presently version 2.191) can be downloaded. Click on the Jenkins exe file to unzip the file into a folder.
To begin the installation click on "Next."
To install Jenkins in another directory, click the "Change..." button. I'll hold the default choice in this instance and click on "Next."
To begin the installation process, click on the "Install" button.
The installation is being processed.
When finished, you can finish the setup by clicking the "Finish" button.
The URL http:/localhost:8080 will automatically be redirected to a Jenkins local page or the browser can be pasted.
Copy and paste the password from the C:\Program Files (x85)\Jenkins\secrets\initialAdminPassword file for Jenkins unlocking. Click on the button "Continue."
The suggested plugins or chosen plugins that you select can be installed. We will install the suggested plugins to maintain it easy.
Wait for the complete installation of plugins.
The next step is to build a Jenkins admin user. Click "Save and Continue." Please enter your information.
To finish the Jenkins setup, click on "Save and Finish."
To begin Jenkins, click on "Start using Jenkins."
Below is the default page of Jenkins.
Make sure that you are signed in as a user with sudo privileges before continuing this tutorial.
$ sudo yum install java-1.8.0-openjdk-devel
Jenkins does not currently support Java 10 (and Java 11). Make sure that Java 8 is the default Java version when multiple Java versions are installed on your computer.
$ curl --silent --location http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo | sudo tee /etc/yum.repos.d/jenkins.repo
Add your system's repository with:
$ sudo rpm --import https://jenkins-ci.org/redhat/jenkins-ci.org.key
$ sudo yum install jenkins
$ sudo systemctl start jenkins
$ systemctl status jenkins
jenkins.service - LSB: Jenkins Automation Server
Loaded: loaded (/etc/rc.d/init.d/jenkins; bad; vendor preset: disabled)
Active: active (running) since Thu 2018-09-20 14:58:21 UTC; 15s ago
Process: 2367 ExecStart=/etc/rc.d/init.d/jenkins start (code=exited, status=0/SUCCESS)
$ sudo systemctl enable jenkins
jenkins.service is not a native service, redirecting to /sbin/chkconfig.
Executing /sbin/chkconfig jenkins on
If you install Jenkins on a remote CentOS firewall-protected server, port 8080 is necessary. To open the required port, use the following instructions:
$ sudo firewall-cmd --permanent --zone=public --add-port=8080/tcpsudo firewall-cmd --reload
Open your browser and type in your domain or IP address followed by port 8080 in order to set your fresh Jenkins setup:
Below screen will be displayed which prompts you to enter the admin password generated during setup:
To print the password on your terminal, use the following instructions:
$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword
The alphanumeric password should be 32 characters long, as shown below:
Copy your terminal password, paste it in the password field for the Administrator and click on Continue.
On the next screen, you are asked if you would like to install or pick certain plugins. To begin the installation process instantly, just click on the Install suggested plug-ins box.
When the installation is finished, the first administrative user is prompted for the setting. Fill in all the necessary data. and click the Save and Continue.
On your next page, the URL for the Jenkins instance will be requested. An automatically produced URL will be added to the URL field.
To finish the configuration, click the Save and Finish button to verify the setup.
Finally, click start using Jenkins Button to start the process and the user we created in one of the past steps as admin user will log in Jenkins dashboard.
You have effectively mounted Jenkins on your CentOS scheme when you have reached this point.
Download Jenkins installer.pkg file from Jenkins ' official website and get through the wizard setup.
The jenkins setup wizard sets up a distinct Jenkins user on your system.We need to make some changes in the ‘Users & Groups’ section as well. Do follow below steps.
Now our Jenkins user is almost ready.This is just like another mac user with admin rights.Now restart your Mac machine and log in with Jenkins user with the password which you just reset.
Click the lock to save the changes and restart the system to login with Jenkins user account.
In localhost Jenkins resides at port 8080.
Open your browser, go to localhost:8080 and make the original set-up, which consists of installing some plugins and creating account for safety purpose.
Setting Jenkins as Launch agent
Your email address will not be published. Required fields are marked *