Issue:- How to install Jenkins as a Window service
Platform:- Opkey SaaS All versions
Basically, Jenkins has two types:-
Long-term support release (LTS) :
Long-term support releases are available every 12 weeks. They are stable and are widely tested. This release is intended for end users.
Weekly releases are made available every week by fixing bugs in their earlier version. These releases are intended for plugin developers.
We will use the LTS release though the process remains the same for the Weekly release.
How to Download Jenkins?
The following steps should be followed so that to install Jenkins successfully:
Step 1) Go to https://www.jenkins.io/download/ and select the platform. In our case Windows
Step 2) Go to the download location from the local computer and unzip the downloaded package. Double-click on unzipped jenkins.msi. You can also Jenkin using a WAR (Web application Archie) but that is not recommended.
Step 3) In the Jenkin Setup screen, click Next.
Step 4) Choose the location where you want to have the Jenkins instance installed (default location is C:\Program Files (x86)\Jenkins), then click on the Next button.
Step 5)Click on the Install button.
Step 6) Once install is complete, click Finish.
Step 7) During the installation process an info panel may pop up to inform the user that for a complete setup, the system should be rebooted at the end of the current installation. Click on the OK button when the Info panel is popping-up:
How to Unblock Jenkins?
After completing the Jenkins installation phase, you should proceed further and start its configuration. The next steps will guide you on how you can unblock the Jenkins application:
Step 1) After completing the Jenkins installation process, a browser tab will pop up asking for the initial Administrator password. To access Jenkins, you need to go to browse the following path in your web browser.
If you can access the above URL, then it confirms that Jenkins is successfully installed in your system.
Step 2) The initial Administrator password should be found under the Jenkins installation path (set at Step 4 in Jenkins Installation).
For default installation location to C:\Program Files (x86)\Jenkins, a file called initialAdminPassword can be found under C:\Program Files (x86)\Jenkins\secrets.
However, If a custom path for Jenkins installation was selected, you should check that location for the initialAdminPassword file.
Step 3) Open the highlighted file and copy the content of the initialAdminPassword file.
Step 4) Paste the password it into browser’s pop-up tab (http://localhost:8080/login?form=%2F) and click on Continue button.
You can also customize your Jenkins environment by the below-given steps:
Step 1) Click on the “Install suggested plugins button” so Jenkins will retrieve and install the essential plugins
Jenkins will start to download and install all the necessary plugins needed to create new Jenkins Jobs.
Note: You can choose the Option “Select Plugins to Install” and select the plugins you want to install
Step 2) After all suggested plugins were installed, the “Create First Admin User” panel will show up. Fill all the fields with desired account details and hit the “Save and Finish” button.
Step 3) Once you have filled the above data, finally it will ask for URL information where you can configure the default instance path for Jenkins. Leave it as it is to avoid any confusions later. However, if another application is already using 8080 port, you can use another port for Jenkins and finally save the settings, and you are done with installation of Jenkins. Hit the “Save and Continue” button:
Congratulations! We have successfully installed a new Jenkins Server. Hit the “Start using Jenkins” button.