I am trying to install and upgrade Jenking on Windows 10 x64 VM.
When I am installing/upgrading in GUI its working fine. But when I try to run this is command prompt silently its getting stuck at start service(I have required permission on machine).
Command line I am trying is
C:\Users\Admin\Downloads\jenkins.msi ALLUSERS=1 ADDLOCAL=StartService,UninstallService,Complete,FirewallException INSTALLDIR=“c:\temp\t 1” Port=8080 JAVA_HOME=“C:\Program Files\Zulu\zulu-21\” /qb
Can anyone help me with this?
Jave version- Azul JDK 21.32.17
Old Jenkins version-2.255.4261
Latest Jenkins-2.255.4403
The command you’re using seems to be correct (at least for my Linux-user eyes ) for a silent installation of Jenkins on Windows.
I’ve never tried it, I do prefer Docker.
There could be a few reasons why the service is not starting nonetheless:
Make sure that the JAVA_HOME path is correct and that it points to the correct location of your Java installation. Also, make sure that the path does not contain any spaces (). If it does, you might need to use the short path name (8.3 filename) for JAVA_HOME.
Check that the port 8080 is available and not being used by another service.
The user that the Jenkins service runs under needs to have the correct permissions to start services. If you’re running the command as a user without these permissions, the service might not start.
Check that your Windows Firewall settings are not blocking Jenkins.
Check the Jenkins log files for any error messages. The log files are typically located in the %JENKINS_HOME%/logs directory.
If you’re still having issues, you might want to try installing Jenkins manually to see if you get any error messages. You can also try running the command without the /qb switch to see if you get any error messages.