How can I add a username and password to Jenkins?
JenkinsJenkins Problem Overview
When I go to mydomain.com:8080 there is no authorization mechanism by default. I have had look at the configuration area but cannot find anywhere to add a basic username and password
Jenkins Solutions
Solution 1 - Jenkins
Go to Manage Jenkins > Configure Global Security and select the Enable Security checkbox.
For the basic username/password authentication, I would recommend selecting Jenkins Own User Database for the security realm and then selecting Logged in Users can do anything or a matrix based strategy (in case when you have multiple users with different permissions) for the Authorization.
Solution 2 - Jenkins
Assuming you have Manage Jenkins > Configure Global Security > Enable Security and Jenkins Own User Database checked you would go to:
- Manage Jenkins > Manage Users > Create User
Solution 3 - Jenkins
-
Try deleting the .jenkins folder from your system which is located ate the below path. C:\Users"Your PC Name".jenkins
-
Now download a fresh and a stable version of .war file from official website of jenkins. For eg. 2.1 and follow the steps to install.
-
You will be able to do via this method
Solution 4 - Jenkins
You need to Enable security and set the security realm on the Configure Global Security page (see: Standard Security Setup) and choose the appropriate Authorization method (Security Realm).
Depending on your selection, create the user using appropriate method. Recommended method is to select Jenkins’ own user database and tick Allow users to sign up, hit Save button, then you should be able to create user from the Jenkins interface. Otherwise if you've chosen external database, you need to create the user there (e.g. if it's Unix database, use credentials of existing Linux/Unix users or create a standard user using shell interface).
See also: <https://stackoverflow.com/q/17716242/55075>
Solution 5 - Jenkins
If installed as an admin, use:-
uname - admin
pw - the passkey that was generated during installation