How to Install Jenkins Self Hosted on Windows Server 2019/2022 (Tutorial)
How to Install Jenkins Self Hosted on Windows Server 2019/2022.
In a DevOps tools model, both the development and operational team coordinate with one another at all times during an application’s software development life cycle (SDLC). They cover it all, right from building source code to testing, deployment and monitoring.
Also, to integrate the DevOps stages, they use Continuous Integration (CI) and Continuous Delivery (CD). Another key requirement to deliver quality applications on time is to use the right tools for efficient workflow. Most companies and large organizations prefer investing in DevOps tools as it aids in the quick completion of projects, enables the team to concentrate on value based tasks and allows smooth operations. At the current time, one can find various DevOps tools online and select as per their organizational requirement. Many DevOps tools have gained popularity over the years. But out of all, Jenkins is one of the popular DevOps tools that help automate the CI/CD process, organize application deployments, and makes it easier for the teams to collaborate and work efficiently.
Next we will introduce Jenkins server and how it works and talk about Jenkins pros and benefits.
What is Jenkins?
Jenkins is a free and open source tool used to build, test and deploy software projects. It is written in Java and is one of the most popular tools for continuous integration and continuous delivery on any platform. It provides a lot of plugins that help you for automating almost everything at the infrastructure level. It is available on a variety of systems, including Windows server, Jenkins Linux server , Unix, and macOS.
Advantages of using Jenkins
A Trusted Open source Automation Tool: The open source automation feature allows developers and operational teams to easily build, test and deploy the new versions of an application. As a result, users can expect new stable versions with better updates, features and improvements each year. Jenkins is free to download tool that allows developers to access the source code. Thus, enhances the chances of improvising and contributing to the Jenkins projects.
Easy to Install and Configure: Jenkins is a self contained Java based program that is quite easy to install and configure. It also supports various in built functions and plugins for smooth operations.
DevOps get access to multiple plugins: Jenkins supports a large set of plugins that helps developers to modify the software and add more features. Further, these plugins help extend Jenkins and customize it as per the project requirement. Embeddable build status, GitHub/GitLab Pull Request Builder, Build pipelines, etc., are often used by DevOps teams for CI/CD process.
Integration and Supports Work Distribution: Jenkins helps in easy work distribution across multiple platforms and integrates with Git, CVS, Subversion, Docker vs Jenkins and other version control tools.
Jenkins is a Flexible and easy to use DevOps Tool: Jenkins is highly flexible and compatible with all size projects. Its open architecture and features like supporting multiple plugins (for example Jenkins SSO plugin) make it an easy to use DevOps Tool. You can also integrate N number of servers with Jenkins. Users can also discuss their queries and understand the technology with its active and thriving community.
Comprises a Decent API suite: API suite is an in built feature present in the tool. This feature helps developers run validation checks for each web application and fetch accurate data.
In this post, we will show you how to install Jenkins on Windows 2019/2022.
Install Java for Jenkins Windows
Jenkins is a Java based application. So Java JDK version 8 or 11 must be installed on your server. You can follow the below steps to install Java 11 on Windows.
Step 2 – Once Java 11 is downloaded, double click on it to start the installation. You should see the Java installation welcome page:
Step 3 – Click on the Next button. You should see the Java installation path selection page.
Step 4 – Choose your installation location and click on the Next button to start the installation. Once Java is installed, you should see the following page:
At this point, Java 11 is installed in your system. You can now proceed to the next step.
Install Jenkins on Windows Server 2019/2022
In this section, we will show you how to Install Jenkins Self Hosted on Windows Server 2019/2022. Follow the below steps to install Jenkins on Windows.
Step 2 – Scroll down and click on Windows to download the latest version of the Jenkins installer on your system.
Step 3 – Once the download is complete, double click on the Jenkins installation file to start the installation. You should see the Jenkins welcome page:
Step 4 – Click on the Next button. You should see the Jenkins installation folder selection page.
Step 5 – Choose your installation folder and click on the Next button. You should see the Jenkins service credentials page:
Step 6 – Select “Run service as LocalSystem” and click on the Next button. You should see the Jenkins port selection page:
Step 7 – Define your Jenkins port and click on the Test Port button to test the port. If the port is available, you should see the following page:
Step 8 – Click on the Next button. You should see the Java path selection page.
Step 9 – Define your Java path and click on the Next button. You should see the Jenkins custom setup page.
Step 10 – Click on the Next button. You should see the following page:
Step 11 – Click on the Install button to start the installation. Once the Jenkins is installed, you should see the following page:
Step 12 – Click on the Finish button to complete the installation.
Access Jenkins Web Interface
At this point, Jenkins is installed on your system. Now, you will need to perform the Jenkins web based installation. Follow the below steps to perform the Jenkins web based installation.
Step 1 – Open your web browser and type the URL http://localhost:8080. You should see the Jenkins initial setup screen:
Step 2 – Navigate to the location on your system specified by the Unblock Jenkins page as shown below:
Step 3 – Open the initialAdminPassword file using a text editor such as Notepad as shown below:
Step 4 – Copy the password from the initialAdminPassword file and paste the password in the Administrator password field on the Unblock Jenkins page and click Continue to proceed. You should see the Customize Jenkins page:
Step 5 – Click the Install suggested plugins button to install the most frequently used plugins. After Jenkins finishes installing the plugins, you should see the Create First Admin User page:
Step 6 – Provide your admin username, password, email and click on the Save and Continue button. You should see the Jenkins instance configuration page:
Step 7 – Define your Jenkins URL and click on the Save and Finish button. You should see the following page:
Step 8 – Click on the Start using Jenkins button. You will be redirected to the Jenkins dashboard: