Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins auto created user account, how to login/change password?

I've setup Jenkins, and it's working well. It uses the Perforce plugin as the SCM, and builds automatically upon a checkin. My issue is that when a user makes a commit to the tree it auto creates a user account on the system, but no password is set, and the user cannot login.

The system is secured on a intranet, and I have set Jenkins to use "Jenkins own user database" and "Logged in users can do anything". Problem is I can't find any way for someone to log in once they have made a commit, there username is shown in the list of auto-created accounts, but no password is ever sent. Is there a default password, or a way to reset?

The system is running on Ubuntu 12 with Tomcat7 serving the Jenkins front end.

like image 605
xceph Avatar asked May 29 '12 20:05

xceph


2 Answers

Users created by SCM are not "full" users. They are created for purposes of showing SCM changes and receiving e-mails. Therefore they need to sign up (using 'Sign Up' icon that appears to the left of of 'log in' icon in the upper right corner) and provide their password. It is advisable for the username to match the SCM name.

Alternatively, a user with a "full" account can go to http://<jenkins-server>/people/ -> click on username -> click on Configure link to the left, and configure the user (I'm not 100% sure if this will work, though, try it).

like image 155
malenkiy_scot Avatar answered Sep 27 '22 01:09

malenkiy_scot


With version 1.517, signing up didn't work and gave the "User name is already taken" error.

However you can go to to http://<jenkins-server>/user/<autogenerated username>/configure and set a password for the SCM user, which converts them into a full Jenkins user.

like image 33
Panda Avatar answered Sep 25 '22 01:09

Panda