Red Hat Bugzilla – Bug 975539
Jenkins: Builds won't start after Jenkins admin password is changed.
Last modified: 2017-03-08 12:35 EST
+++ This bug was initially created as a clone of Bug #975255 +++
Description of problem:
When you change the admin password, builds no longer kick off as an error is thrown:
java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.5.130.1:8080/job/phptest-build/config.xml
When you change the admin password back to $JENKINS_PASSWORD, builds start to work again.
--- Additional comment from Meng Bo on 2013-06-18 02:18:57 EDT ---
Checked on devenv_3375, reproduced this issue.
For this problem, jenkins server will trigger the jenkins build with admin user now, which was and should be system_builder.
SSH login to the jenkins server will get the following ENV:
After change the admin password, the ENV JENKINS_PASSWORD will not be changed accordingly.
When trigger jenkins build, will get the following info from jenkins log:
Jun 18, 2013 2:02:25 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Retrieving config XML from http://127.0.251.1:8080/job/php1-build/config.xml
Jun 18, 2013 2:02:25 AM hudson.plugins.openshift.OpenShiftCloud createConnection
INFO: Using credentials admin:r5jrAUV4_xU-
Jun 18, 2013 2:02:26 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig
WARNING: Reload GET:
Jun 18, 2013 2:02:26 AM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Caught java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.0.251.1:8080/job/php1-build/config.xml. Will retry 1 more times before canceling build.
We should use the system_builder which password cannot be changed to trigger jenkins build.
--- Additional comment from Dan McPherson on 2013-06-18 13:08:47 EDT ---
This will fix existing apps and get rid of the issue for new apps.
Consensus seems to be to pull this in for 1.2. $large_customer would probably be very annoyed with this bug.
Verified this issue on puddle:
jenkins server was using system_builder for jenkins build
Jun 23, 2013 9:17:16 PM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Retrieving config XML from http://127.0.250.1:8080/job/php-build/config.xml
Jun 23, 2013 9:17:16 PM hudson.plugins.openshift.OpenShiftCloud createConnection
INFO: Using credentials system_builder:t4xqXqJC8jg1
Closing all bugs introduced, fixed, and verified during 1.2 release work (thus never shipped).