Introduction and Setup of Jenkins

Posted By :Harsh Kumar |17th April 2021

 

 Jenkins is an available and open-source automation computer tool. Jenkins helps modify the non-human portion of the software development process, with constant integration and alleviating technological aspects of the continual transfer. It is the server-based method that works in servlet containers, e.g., Apache Tomcat. 

It endorses translation power instruments, including AccuRev, CVS, corruption, Git, Mercurial, Perforce, TD/OMS, ClearCase, and RTC. It will perform Apache Ant, Apache Maven, and SBT based projects and arbitrary shell scripts, and Windows batch commands. 

Issued under the MIT License, Jenkins is available to code.

 

This Jenkins plan was initially named Hudson and was renamed after the conflict with Oracle, which had forked this program and claimed rights to the work-family. The Oracle fork, river, continued to be produced before being donated to the Eclipse education. Prophecy's river is no longer preserved and was announced as outdated in Feb 2017.

 

Builds can be activated in different ways, for instance, by committing to the version control method, scheduling via the crown-like device, and requesting a proper build URL. It may also be triggered after the different builds in the queue get finished. Jenkin's functionality will be offered with plugins.

 

 How to install Jenkins on a Ubuntu server?

 

Prerequisite 

 

Install JRE

 

$ sudo apt update

$ sudo apt install default-jre 

$ java -version

 

Output

 

openjdk version "11.0.7" 2020-04-14

OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)

OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)

 

Install JDK

 

$ sudo apt install default-jdk

$ javac -version

 

Now Java is installed on your server.

 

Installing Jenkins

 

Step 1. Add the repository key

$ wget -q -O - https://pkg.jenkins.io/debian-stable/jenkins.io.key | sudo apt-key add –

 

Append this package to server list:

$ sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list'

 

Step 2. Install Jenkins

$ sudo apt update

$ sudo apt install Jenkins

 

Step 3. Start Jenkins

$ sudo systemctl start Jenkins

$ sudo systemctl status Jenkins

 

Step 4. Setup Jenkins

Go to the default port of Jenkins 8080. 

http://ip_address:8080

 

Get the password at the given path.

 

$ sudo cat /var/lib/jenkins/secrets/initialAdminPassword

 

Copy the password and paste it into the Jenkins setup page.

You will get the customized Jenkins page which allows you to install the plugins. You can choose any option, but the "Installed suggested plugin" is recommended.

 

After installation, create the user and password for Jenkins and press "Save and Continue".


 

Now the Jenkins setup is complete and is ready to use.

 


About Author

Harsh Kumar

He is an enthusiastic employee who has worked on cloud platforms like Azure and AWS and some DevOps tools.

Request For Proposal

Sending message..

Ready to innovate ? Let's get in touch


Notice: Undefined index: HTTP_REFERER in /var/html/www/AI/wp-content/themes/oxides-child/functions.php on line 272

Notice: Undefined index: HTTP_REFERER in /var/html/www/AI/wp-content/themes/oxides-child/functions.php on line 272

Notice: Undefined index: HTTP_REFERER in /var/html/www/AI/wp-content/themes/oxides-child/functions.php on line 272

Notice: Undefined index: HTTP_REFERER in /var/html/www/AI/wp-content/themes/oxides-child/functions.php on line 272

Chat With Us