Description of problem: Jenkins build always failed due to jenkins plugin can not get credentials. Version-Release number of selected component (if applicable): devenv_3224 How reproducible: Always Steps to Reproduce: 1.create jenkins-1.4 app 2.create an app and embed jenkins-client-1.4 to it 3.make some changes in app's git repo and git push to trigger jenkin build Actual results: [root@dhcp-8-133 ruby]# git push [master 505077e] update 0 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 bb Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 227 bytes, done. Total 2 (delta 1), reused 0 (delta 0) remote: Executing Jenkins build. remote: remote: You can track your build at https://jjj-000.dev.rhcloud.com/job/ruby-build remote: remote: Waiting for build to schedule......................... remote: **BUILD FAILED/CANCELLED** remote: Please see the Jenkins log for more details via 'rhc tail' remote: !!!!!!!! remote: Deployment Halted! remote: If the build failed before the deploy step, your previous remote: build is still running. Otherwise, your application may be remote: partially deployed or inaccessible. remote: Fix the build and try again. remote: !!!!!!!! remote: Failed to execute: 'control post-receive' for /var/lib/openshift/b5baf612bc7c11e2ae2e22000a91e756/jenkins-client: rc(1) remote: stdout: #<IO:0x000000025752b8> remote: stderr#<IO:0x00000002575240> remote: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.9.1/lib/openshift-origin-node/model/v2_cart_model.rb:950:in `block in do_control_with_directory' remote: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.9.1/lib/openshift-origin-node/model/v2_cart_model.rb:776:in `process_cartridges' remote: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.9.1/lib/openshift-origin-node/model/v2_cart_model.rb:923:in `do_control_with_directory' remote: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.9.1/lib/openshift-origin-node/model/v2_cart_model.rb:799:in `do_control' remote: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.9.1/lib/openshift-origin-node/model/application_container.rb:416:in `post_receive' remote: /usr/bin/gear:133:in `block (3 levels) in <main>' remote: /usr/bin/gear:80:in `do_command' remote: /usr/bin/gear:132:in `block (2 levels) in <main>' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:180:in `call' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/command.rb:155:in `run' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/runner.rb:385:in `run_active_command' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/runner.rb:62:in `run!' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/delegates.rb:11:in `run!' remote: /opt/rh/ruby193/root/usr/share/gems/gems/commander-4.0.3/lib/commander/import.rb:10:in `block in <top (required)>' To ssh://b5baf612bc7c11e2ae2e22000a91e756.rhcloud.com/~/git/ruby.git/ 9fc541f..505077e master -> master Expected results: Jenkins build should work well Additional info: Errors in jenkins server.log: ... May 14, 2013 6:02:56 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig INFO: Reloading configuration for ruby-build... May 14, 2013 6:02:56 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig INFO: Retrieving config XML from http://127.0.254.1:8080/job/ruby-build/config.xml May 14, 2013 6:02:56 AM hudson.plugins.openshift.OpenShiftCloud createConnection INFO: Using credentials null:null May 14, 2013 6:02:56 AM hudson.plugins.openshift.OpenShiftCloud reloadConfig WARNING: Reload GET: May 14, 2013 6:02:56 AM hudson.plugins.openshift.OpenShiftCloud provision WARNING: Caught java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.0.254.1:8080/job/ruby-build/config.xml. Will retry 4 more times before canceling build. java.io.IOException: Server returned HTTP response code: 401 for URL: http://127.0.254.1:8080/job/ruby-build/config.xml at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625) at hudson.plugins.openshift.OpenShiftCloud.reloadConfig(OpenShiftCloud.java:513) at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:462) at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:401) at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:264) at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51) at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:347) at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) ... After restart jenkins server application, jenkins build could work well.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/6a654adb895f2fb0abf809a444e7efc051b3fcb4 Bug 962805
Commit pushed to master at https://github.com/openshift/li https://github.com/openshift/li/commit/12b788616c741d9cfa00cd3b38b0dbee6d94446c Bug 962805
https://github.com/openshift/origin-server/pull/2462
Test this on devenv_3228, jenkins build could work well, no error logs in jenkins server app, so move it to VERIFIED. [root@dhcp-8-133 php1]# gitpush [master 05e9d4d] update 0 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 aaa Counting objects: 3, done. Delta compression using up to 8 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (2/2), 252 bytes, done. Total 2 (delta 1), reused 0 (delta 0) remote: Executing Jenkins build. remote: remote: You can track your build at https://jj-000.dev.rhcloud.com/job/php1-build remote: remote: Waiting for build to schedule............................................Done remote: Waiting for job to complete...............................................................Done remote: SUCCESS remote: New build has been deployed. To ssh://51933191267e280888000001.rhcloud.com/~/git/php1.git/ 589cfae..05e9d4d master -> master