How to Install Jenkins on Windows

preview_player
Показать описание
Need help with your Jenkins questions?

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
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

CloudBees on Twitter:

Darin on Twitter:
Рекомендации по теме
Комментарии
Автор

The video was really helpful, thanks. In my case, I'm learning how to interact with Jenkins. If someone is lost like I was, I have Windows 11 Home, so I can't modify or access the local security policy (you must have Windows Pro or Enterprise in order to do what was shown in the video). Here's what I did:

1) Downloaded JDK 11 and followed the exact steps as you said in the video, except for changing the installation path.
2) Edited the environmental variables.
3) Skipped the 'local security policy' step.
4) Installed Jenkins again, not changing the installation path, I left it as it was by default. I chose the first option at 6:50 (Run Service as LocalSystem), clicked 'next.' Tested port 8080, clicked next. Unselected the option 'Start Service' by selecting 'Entire feature will be unavailable, ' and then clicked next and Install.
5) Then I went to C:\Program Files\Jenkins (because it's my default installation path) and modified the XML file, but only the 'Executables' part, just like in the video. I left the other part of the file intact.
6) Searched for Services in the Windows search bar and started the Jenkins Service. Because I didn't change the path of any software (JDK and Jenkins), it started automatically.
7) Opened my default browser and typed: localhost:8080, and it asked me for a password. All you have to do is go to that path (C:\ProgramData\Jenkins.jenkins\secrets/initialAdminPassword), open the file, copy the password, and paste it. Then click on 'Install Suggested Plugins.'
8) Create a user and start using it.

Hope someone finds this useful.

santiagoc
Автор

What password did he use? My pc has no password and I don't want to lock it with one. How do I get past this hurdle please.

musti
Автор

I had some issues while adding user to Start as a Service,
besides that I have made a little mistake when was specifying

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!

asanakimov
Автор

Very thorough. Thank you for the extra configuration put into the xml file portion of this tutorial.

InSterquiliniisInvenitur
Автор

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

pateltrikam
Автор

How wonderful! It's really easy to install and configure. Thank you teacher!

nguyenphuhuy_tt
Автор

Undoubtedly a perfect tutorial. Thanks a ton.

macsrcyt
Автор

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.

learnmoremuchandiona
Автор

Thank you. The detail of the explanation is awesome. !

ornellaluna
Автор

The memory allocated to the JVM in the tutorial is far too high (3 GB to 3 GB), the service will not start for me until correct values are declared for the JVM memory (256 MB to 512 MB ). now JDK consumes around 282m and everything works fine. Alongside this is a great tutorial.

liamwil
Автор

Thank you so much for your detailed explanations. Much appreciated.

ultrainstinct
Автор

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?

mikehealy
Автор

@DarinPope Very nicely explained in short. 👍

bauntimandal
Автор

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

=> <env name="JENKINS_HOME"
=>
=> <arguments>-Xrs <arguments>-Xrs -Xms3g -Xmx3g -Djava.awt.headless=true timeZone-America/New_York - - ServiceLifecycle -jar --httpPort=8080
=>

Cheers!!!🤝

alphatechacademy
Автор

hi where did he get the password for the account he created?

moutazal
Автор

nice tutorial! you've helped me set it up properly, thanks a lot!

mihai_chindris
Автор

Good, Installation works correctly except adding a user on installation time

sajeshp
Автор

Great tutorial! I have a question though. Where can I download all those plugins so that I can install Jenkins in an offline environment? Thank you!

threebyzeroa.k.atbz
Автор

windows 10 does not show anything your are showing, I don't see local security settings I don't see anything in windows 10 home edition

pkp
Автор

Thank you for sharing your knowledge. I am very grateful for watching your videos. I have a question: How do I set the screen size of browsers in Jenkins? While executing on my local Windows, all my test cases passed, but on Jenkins, they failed because the screen size did not change. In my Java Selenium code, I have set the dimensions as follows:
Dimension newSize = new Dimension(1936, 1048);
I have followed all of your steps to install Jenkins on Windows and test cases are executed but some tests failed because of no such element because of screen size. I have written the code for screen size 1936, 1048. while running the test cases on Jenkins I have printed the screen size which is display 1044, 788. I am not able to change it. pls, consider my issue.

JeyasankarA