DevOps using Jenkins


There are many ways for deploying application and out of it most traditional application deployment processes are slow. DevOps promote code process which add value to Agile Methodologies. And it’s accelerating processes like Code Promotion and Deployment. We have some terms which will be used in this article like –

  • Continuous Integration – Integrating your code after any change happened in your code base or versioning tool like SVN, GitHub, TFS, and Bit Bucket
  • Continuous Delivery – Next step after integration, which will move your code base to production pipeline.
  • Continuous Deployment – Once your code base is on production ready stage then it will deployed to respective server on Production.
  • Unit and Acceptance testing also performed here and after testing, code is staged for deployment.

Important Tools –

  • ANT – Which is also called as Neat Tool, and using to build Java Applications, it’s a scripting language.
  • GIT/Bit Bucket/SVN/TFS – Used for Code repository.
  • Selenium – Automation Testing tool
  • Sonar – Code Quality measuring

Installing and running Jenkins on windows to do a pull of the source code hosted in TFS or SVN and running a build on the solution as well as some unit tests. So, considering this background this document will be explaining how to setup Jenkins.


  • Platform(s): Windows 2008 Server, Windows 7, Windows 8, Windows XP, Windows Server 2012, Windows Vista, Windows 10
  • Java version(s): 0, 8.0

What are the system requirements for Java?

Java 7 System Requirements


  • Windows 10 (7u85 and above)
  • Windows 8.x (Desktop)
  • Windows 7 SP1
  • Windows Vista SP2
  • Windows Server 2008 SP2 and 2008 R2 SP1 (64-bit)
  • Windows Server 2012 (64-bit) and 2012 R2 (64-bit)
  • RAM: 128 MB; 64 MB for Windows XP (32-bit)
  • Disk space: 124 MB
  • Browsers: Internet Explorer 7.0 and above, Firefox 3.6 and above

Installation Process

Note: Same Installation process need to follow for Java version 8.0

  • The File Download dialog box appears prompting you to run or save the download file
    • To run the installer, click Run.
    • To save the file for later installation, click Save.
      Choose the folder location and save the file to your local system.

Tip: Save the file to a known location on your computer, for example, to your desktop.
Double-click on the saved file to start the installation process.

  • The installation process starts. Click the Install button to accept the license terms and to continue with the installation.

OfficialCoder7 Java Installation

  • Oracle has partnered with companies that offer different products. The installer may present you with option to install these programs when you install Java. After ensuring that the desired programs are selected, click the Next button to continue the installation.
  • A few brief dialog confirm the last steps of the installation process; click Close on the last dialog. This will complete Java installation process.

OfficialCoder7 Java Installation

  • Test Installation

To test that Java is installed and working on your computer, run Test

  • Downloading Jenkins

To download Jenkins, you should go to their Home_Page and download latest war file.

  • Installing Jenkins
  • Run command prompt as Administrator and run below command with browsing to the folder where you have your Jenkins.war file kept.

java -jar D:\Jenkins\jenkins.war

OfficialCoder7 Jenkins Installation

  • Press “Enter” to execute .war file


  • Sign to complete the Setup is “Jenkins is up and running” you will find this message at command prompt.
  • Don’t close the command prompt till the Jenkins set as windows service; installations is not completed.
  • Browse the given URL http://localhost:8080
  • Enter “Administrator Password” – Password is provided into “\secrets\initialAdminPassword” folder

OfficialCoder7 Jenkins Installation Initial Password

  • Click on “Select plugins to install” to install the required plugins.

OfficialCoder7 Jenkins Plugin Installation

  • Select the Plugins

OfficialCoder7 Jenkins Plugin Installation

OfficialCoder7 Jenkins Plugin Installation

  • Click on “Install” button
  • Installation get started like as below figure –

OfficialCoder7 Jenkins Plugin Installation

OfficialCoder7 Jenkins Plugin Installation

  • After all plugins get install below screen gets appeared

OfficialCoder7 Jenkins Plugin Installation

  • After successful installation you will launched at Jenkins Dashboard page

OfficialCoder7 Jenkins after login

  1. Install as a Windows Service:Manage Jenkins

When you’ve selected this link, it should come up with a page as follows:

OfficialCoder7 Manage Jenkins

  • In this list you should see a link called “Install as Windows Service”.  When you click this link, you should go to a page that looks like:

OfficialCoder7 Manage Jenkins

OfficialCoder7 Jenkins Restart

  • After completion of execution run the below command in command prompt “service.msc” and you will see the below screen with Jenkins as a windows service.

OfficialCoder7 Services.msc

  • If you see the message like “Starting the service with id ‘jenkins’ started” in command prompt, then close / exit the command prompt

OfficialCoder7 Jenkins restart

  • Install required plugins from “Manage Plugins”

OfficialCoder7 Manage Jenkins

Jenkins Usage

It has growing and vibrant ecosystem, and also hold conferences and training events worldwide.

JUC (Jenkins User Conference) National User group US, England and Israel held meeting online called as “Office Hours”. CloudBees has helped Jenkins user community. Free tutorial available on Jenkins website.

You can associate with Jenkins group and having low requirement to join Jenkins Project, they having two groups. One is Core Jenkins and another works on Plug-In group.

Plug-in are key power source of Jenkins, here are some important plug-in –

  • Pipeline – Create and automate code promotion
  • Source Code Management – Code repository
  • Monitoring – Performance reports
  • Build Trigger – Define build events

Jenkins maintain the quality measures – You can see below image by clicking “LEGEND”

OfficialCoder7 Jenkins Health

Also, you can visualize more quality options for your project like as follow –

“S” – Status of your build which can be everything from above option

“W” – It shows the wealth of your build from above image.

OfficialCoder7 Jenkins Command Line

Command line tool –

In Jenkins you can do command line operation for Jenkins like as follow –

URL – http://localhost:8080/cli  -Here you will see all commands which you perform on Command Prompt, below line is use to help from CLI.JAR file.

java -jar jenkins-cli.jar -s http://localhost:8080/ help

Thank you for reading, In next chapter we will configure Jenkins with TFS.

Leave a Reply

Your e-mail address will not be published. Required fields are marked *