I don't know Jenkins at all. I want to install Jenkins on Windows 10. I downloaded the installer and ran it, but I have a problem. I don't know what to enter in the "Account" and "Password" fields on the "Service Logon Credentials" stage.
you can use this link to install Jenkins in windows 10 if you couldn't use the service log on credentials.
https://youtu.be/no98HueS3Ws
Go to https://www.jenkins.io/download/
Download the Generic Java Package(.war)
Create a new folder called jenkins in C drive and move the jenkins.war to that folder
Open command prompt, navigate to the jenkins folder in C drive
Run this war file using the command " java -jar jenkins.war --httpPort=9090"
Jenkins will be downloaded and installed.
You will get an administrator password when you are doing it for the first time.
Copy the password
Open the jenkins in localhost:9090 and give the administrator password
you are now good to go
Related
Is there a way i can change the user the jenkins run without losing existing jenkins data/cofig. I tried changing the user in services.msc, however it crashed jenkins and was not able to load jenkins after changing user.
ps. Actually there are couple of jobs in which clone(git, tfs) happening with some user, however when it comes to running scripts/commands i get permission and attribute(readonly) issues as Jenkins is not running with same account that was used to clone repositories
Maybe your new user has not privileges on Jenkins home folder (C:\Program Files (x86)\Jenkins in my case). Just check rights on this folder.
I need to manually restart Jenkins without wiping-out the Jenkins installation. I have seen many threads, but cannot find a proper solution.
I am using a Windows server.
Use the below steps.
Go to the location where you have downloaded jenkins.war
Right click and open a command prompt
Type the below command and press Enter
java -jar jenkins.war
You can add /restart after root url of your jenkins instalation and it will do what you need.
Note: it will wait till all running jobs finish
Example my.jenkins.com/restart
Maybe it's enough when you click on "Manage Jenkins" -> "Reload Configuration from disk".
I have installed successfully Jenkins after the next day, I have tried to reopen by restarting the Service:Jenkins and got this error.
Should I reinstall Jenkins ?
Thank you.
To get rid of the lockout follow these steps to manually change the version, which could just be back to your old working version.
Stop the Jenkins windows service
Rename war directory to war.bak
Rename jenkins.war to jenkins.war.bak
Get a new war file from https://updates.jenkins.io/download/war/
Copy new jenkins.war into jenkins directory
Start Jenkins windows service
Observe creation of war directory which will now contain contents of jenkins.war archive
Navigate to jenkins home page, at which point you will be informed
that Jenkins is preparing your installation
Once complete, test your
existing jobs to verify compatability
Navigate to 'Manage Jenkins'
via the menu and Action any notifications displayed - plugins, data
format conversions etc.
Delete jenkins.war.bak file and war.bak folder
After following those steps you will be able to get back into Jenkins, you might have other version issues with plug-ins but at least you can get back in and not lose everything. Also always put your pipeline scripts in source control and use a back up plug in for Jenkins.
I have an Active Directory plugin installed that allows logging in to Jenkins portal with my directory credentials by typing them in on the Login page.
But is there a way to automatically log in users if they are on a domain-joined machine? (Obviously, given the browser is configured to allow providing credentials to the site.)
There's a thread on Jenkins Dev group in which a guy mentions that he developed an SSO plugin that worked for him on Windows. He posted it on GitHub under name NegotiateSSO.
First you need to build it to get the hpi file. (Clone the project to your machine, cd into the directory and run mvn (Maven) in it).
The problem is that when I tried to install it, it broke my Jenkins configuration section/page. There's an exception happening inside the plugin that breaks the entire page.
So it didn't work for me, but hopefully it will get fixed at some point and we'll be able to use it.
I've setup a Jekins CI server, added my login to global credentials:
and then enable security of jekins as shown below:
However I always get "invalid login information" error:
Any idea what's going on?
Note, I just drop Jenkins.war file into the user directory and run it as java -jar jenkins.war
IMO, the credentials section is only used to access 3rd party application (like SVN, Artifactory, ...):
You need to create your user using this menu (in the Manage Jenkins section):