Você está na página 1de 4

Jenkins a Beginners Guide

Jenkins is one of the most powerful and efficient continuous integration tools.

What is Continuous Integration?

Continuous Integration is a process/practice by which efficiency of changes made in a


project can be checked immediately by creating a build automatically. A tool which
supports this process is called Continuous Integration Tool. One such tool is JENKINS

Jenkins can be integrated with n number of tools with the help of plugins. Though it is
mainly used for Java project, it can also be used for other domain projects such as
Dotnet.

Installation of Jenkins:

Installation of Jenkins can be done in two ways. One way is to run Jenkins as service while
the other is to deploy Jenkins.war to any of the Application server (Tomcat)

Basic Steps in reating a project in Jenkins:

1. Following steps should be followed to create a project/job in Jenkins


o Logon to Jenkins Server(for ex: http://localhost:8080) (Picture - 1)
o Initially it will not ask for credentials if you are an admin and it will directly
open the dashboard.
o Click on New Item (Picture - 2 )
o Give Project name in the field Item name (Picture - 3 )
o Select Freestyle project (Other items can be ignored during initial
stages) (Picture - 3 )
o Click OK and that will take to Project Configuration page. (Picture - 3 )
o In Project Configuration page there will be many options but below are the
mandatory/needed options for a Job. (Picture - 4 )
Source Code Management: This is where; we need to mention the
address of a repository where the project exists. Whenever a project
is built, source code will be fetched from the repository mentioned
here.
Build Step: Here the main picture will take part such as compiling or
building a package can be done by invoking Ant/Maven. Whatever
required in the project can be invoked at this step.
Post-build Actions: Although this is not mandatory, this is been used
in many projects. Here we can trigger a dependent project to start
as soon as the current build gets over (it is technically called as
Upstream/Downstream projects). Mail plugins can also be invoked
here.
(Picture - 1)

(Picture 2)

(Picture 3)
(Picture 4)
Creating an Ant based Java Project:

1. Open Jenkins URL


2. Click on New Item
3. Enter project name in Item Name Field and select Freestyle project
4. Click on OK

Você também pode gostar