How to Install Jenkins on Windows



Timecodes ⏱:

00:00 Introduction
00:06 Overview
00:38 Starting point
00:55 Download JDK and Jenkins installers
01:51 lnstall the JDK
03:27 Modify system environment variables
05:02 Setup user account to logon as service
06:21 Install Jenkins
08:05 Modify jenkins.xml
11:20 Start the service and review the log files
14:35 Review Task Manager
14:59 What should you backup when running Jenkins on Windows

#jenkinstutorial

Information referenced in this video:

Jenkins LTS 2.303.3
https://www.jenkins.io/changelog-stable/#v2.303.3

CloudBees on Twitter:

Darin on Twitter:


source

22 thoughts on “How to Install Jenkins on Windows”
  1. I have Unrecognized option: –

    Error: Could not create the Java Virtual Machine.

    Error: A fatal exception has occurred. Program will exit.
    what's wrong?

  2. Changes that were made to the jenkins.xml file were made at the following locations:

    => <env name="JENKINS_HOME" value="C:datajenkins_home"/>

    => <executable>%JAVA_HOME%binjava.exe</executable>

    => <arguments>-Xrs <arguments>-Xrs -Xms3g -Xmx3g -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -Djava.io.tmpdir=C:toolsJenkinstmp -Dorg.apache.commons.jelly.tags.fmt. timeZone-America/New_York – Duser.timezone=America/New_York! – Dhudson.lifecycle=hudson.lifecycle.Windows ServiceLifecycle -jar "C:toolsJenkinsjenkins.war" –httpPort=8080 –webroot="C:toolsJenkinswar" –pluginroot="C:toolsJenkinsplugins"</arguments>

    => <pidfile>C:toolsJenkinsjenkins.pid</pidfile>

    Cheers!!!🤝

  3. “Run service as local or domain user”: (If you get stock at this stage of the installation process, follow the steps below to resolve)

    1) Create a local user or domain user to proceed further:

    Type “User accounts” in the windows start menu, select the options which reads as “Add, edit or remove other users”.

    2) Add a new user under “Other user” and select option “I don’t have this person’s sign-in information”. Note: You can give any custom name and your choice of password and proceed without a MS Outlook account.

    3) Once this user created, if you forgot to assign admin role to the newly created user then you will see an error inside the Jenkins dialog.

    4) If you experience the Jenkins error dialog box, go to the dialog where you created a local user previously, click on the new local user and assign them administrator role/priviledges.

    5) Open the ‘Administrative Tools’ and open the ‘Local Security Policy’:

    Hold "win" key and press "r" to open "Run" and type the following "secpol.msc".

    6) Expand "Local Policy" and click on "User Rights Assignment"

    7) In the right pane, scrol down to locate "Log on as a service" right-click and select properties or double click to open "Log on as a service" properties box.

    8) Click on the "Add User or Group…" button to add the new user that you added earlier under “User accounts”.

    9) Click on "Check name" for Windows to resolve/add new user name to Local Policy group and click OK to close the dialogue box.

    10) In the "Select Users or Groups" dialogue, find the user you added, click on the name, click "Apply" => "OK" to save changes in the "Log on as a service Properties".

    11) Now its time to go back to Jenkins window and try it again. Input the local user details (logon name & password) in the specified fields and click on “Test credentials”. This time a tick must appear.

    12) Click next to proceed with Jenkins installation.

    Cheers!!!🤝

  4. @DarinPope or anyone. I am new to Jenkins. I love your video. It is very helpful but I am running into a problem trying to connect the Master Jenkins to the Nodes Jenkins in a private subnet in AWS running Windows 2019. I configured the nodes in the Master but I can’t copy the URL to the node server. Please can you help

  5. ""%LocalAppData%Jenkinswar" to be changed as "C:ToolsJenkinswar" –pluginroot="C:toolsJenkinsplugins"

  6. I had some issues while adding user to Start as a Service,
    besides that I have made a little mistake when was specifying
    –webroot="C:toolsJenkinswar –pluginroot="C:toolsJenkinsplugins"
    forgot to put " after webroot folder )) and the service wouldn't start
    thanks to detailed explanation and pretty neat logs, I have fixed it quickly

    great explanation, clean and precise. thanks a lot for your efforts!

  7. This is a totally unacceptable installation for a software program. Luckily for this video , the document on Jenkins page it was finally installed correctly. I had to mess with the services for about 1 hour on my Win10 PC. The installer is strict about the port and service account, not sure why, with a little more programming and code the default configuration files cannot be all moved to c: a folder or C:usersafolder for the whole installation and be done with it. There are plenty of other dev tools that can create integrated web servers and other items. Even you could, it seems create a compressed file and extract and copy files as needed with powershell, chocolatey, etc… Thank you CloudBees for this tutorial.

  8. Excellent work.. Really there are very few explanation on the web. This is the best full A to Z which explained in details.

  9. Good lecture. Managed to follow to the point where you edited the arguments in the xml file. Thats where I got lost; text too small.

  10. Hi, I stopped at the password, from where you copied at 7:08, please reply. If you don't reply this video is useless to people.

  11. It a little tough to read the arguments you've specified in the xml file (at least for me); maybe you could post the entire arguments in the comments?

Leave a Reply

Your email address will not be published.

Captcha loading...