Jenkins is an open-source tool that is simple, extensible, and user friendly. It perform continuous integration and provides CI services for application development. Its basic functionality is to execute a list of predefined steps. It continuously builds and tests the software keeping the track of execution and status of jobs, so the users and team members can regularly obtain the most latest stable code. It supports SCM tools such as CVS, Git, AccuRev and so on and can build Freestyle, Apache Ant, and Apache Maven-based projects. Plugins’ concept makes Jenkins more attractive and easy to use. Various categories of plugins are available such as Source code management, Build triggers, Build tools, Build reports, other post-build actions, UI and library plugins, Android and iOS development, .NET and Ruby development, and so on.

How To Use Jenkins?

Jenkins is used to configuring the jobs for several projects so that these projects can be built on various triggers by Jenkins. To create/configure a job, the description is given below:

1. Using the Jenkins URL on your system, go to the Jenkins home page.

2. Use the Jenkins menu and select the 'new job' option.

3. Define the Job name here.

4. Pick the Job type from the available options as per your project requirement.

5. A new job can also be created by copying any existing job. For this, the 'Copy existing job' option is selected and the existing job’s name is defined.

6. After submitting the request, a page to configure the new job will be presented to you.

7. If a new job is created by copying an existing job, then various fields will be already filled.

8. If the job is created for the first time, the configuration page will have all blank fields.

9. Various fields and options are:

a) Description – the description of the current job is filled in here.

b) Some other configuration options like whether the build needs parameters or not. If yes, UI will provide you with the option to define the build parameters.

c) Then you can define the settings for Source Control / Versioning system:

i. Choose the type of tool you are using like CVS or SVN.

ii. Define the Repository URL for the present job.

iii. Specify the local system directory, if you want else it will be directed to the default directory set up by Jenkins.

iv. Specify checkout strategy. This can be like, update the source code, or check out the fresh copy etc.

v. You can define the repository browser if required.

d) Then you can set up the build triggers. Build Triggers are the events that define when the job should be triggered. You can configure to build this project periodically based on any given schedule after any other project is built.

e) After that, it is configured that how the build system should be called on based upon the build system used in the project. You can choose from the given options like 'Execute Window Batch Command', 'Invoke Ant' etc.

f) Next step is to set up Post Build Actions. There are several options available for the same. Two good options are to send the email along with the results to given email ids and to activate any other configured job.

10. After saving the configuration, you are done.

11. Jenkins will activate the job at the given schedule and will email you the results if you have configured it.

Features of Jenkins:

1. Installation on different operating systems is easier.

2. Easy to upgrade—Jenkins has speedy release cycles.

3. It has a simple and easy-to-use user interface.

4. The use of third-party plugins makes it extensible.

5. It is easy to configure the setup environment in the user interface and also possible to customize the user interface based on likings.

6. Distributed builds are supported by the master-slave architecture to reduce loads on the CI server.

7. It is available with a test harness built around the JUnit framework and the test results are available in graphical and tabular forms.

[ Related Read: Introduction to TestNG Framework ]

8. It incorporates Build scheduling.

9. It provides notification support related to the status of the build.

author_image

Suraj

Suraj is an ISTQB certified Automation Test Engineer at BugRaptors. He is responsible for Automation testing on Web and Mobile application and API Automation. He is also aware about RPA Automation using UiPath Automation Tool. He has working knowledge in Selenium Web driver(Web application), Appium(Android and iOS), API automation (Rest-Assured).

Comments

Add a comment

BugRaptors is one of the best software testing companies headquartered in India and the US, which is committed to catering to the diverse QA needs of any business. We are one of the fastest-growing QA companies; striving to deliver technology-oriented QA services, worldwide. BugRaptors is a team of 200+ ISTQB-certified testers, along with ISO 9001:2018 and ISO 27001 certifications.

USA Flag

Corporate Office - USA

5858 Horton Street, Suite 101, Emeryville, CA 94608, United States

Phone Icon +1 (510) 371-9104
USA Flag

Test Labs - India

2nd Floor, C-136, Industrial Area, Phase - 8, Mohali -160071, Punjab, India

Phone Icon +91 77173-00289
USA Flag

Corporate Office - India

52, First Floor, Sec-71, Mohali, PB 160071,India

USA Flag

United Kingdom

97 Hackney Rd London E2 8ET

USA Flag

Australia

Suite 4004, 11 Hassal St Parramatta NSW 2150