Jenkins builds fail for downloadable cartridges. The output from git push is: remote: Executing Jenkins build. remote: remote: You can track your build at https://jenkins-domain.rhcloud.com/job/cart-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: An error occurred executing 'gear postreceive' (exit code: 1) remote: Error message: Failed to execute: 'control post-receive' for /var/lib/openshift/gear/jenkins-client The Jenkins log contains the error: WARNING: Caught com.openshift.client.OpenShiftException: Cartridge for cart not found. Will retry 0 more times before canceling build. com.openshift.client.OpenShiftException: Cartridge for cart not found at hudson.plugins.openshift.OpenShiftSlave.getCartridge(OpenShiftSlave.java:107) at hudson.plugins.openshift.OpenShiftSlave.createApp(OpenShiftSlave.java:235) at hudson.plugins.openshift.OpenShiftSlave.provision(OpenShiftSlave.java:225) at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:470) 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) BTW, "canceling" is misspelled.
I use https://raw.github.com/qiushui/perlv2cart/master/metadata/manifest.yml. As long as we have additional/spare gear, I can get successful result.
Another report of the same issue: http://lists.openshift.redhat.com/openshift-archives/dev/2013-July/msg00169.html
Here's the cartridge that I'm trying to enable Jenkins on: https://github.com/accursoft/Haskell-Cloud
This is currently a limitation of the openshift java client. Once the support is added there for the upcoming eclipse tools release we will add the support to the jenkins implementation as well.
*** Bug 1028974 has been marked as a duplicate of this bug. ***
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/e985ee5f2c5511069d3ce801fbcf3556f5bfd711 Bug 995807 - Jenkins builds fail on downloadable cartridges
PR: https://bugzilla.redhat.com/show_bug.cgi?id=995807
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/a9f5b8ba9302fb78ac60925b9f527c73071cb7fe Bug 995807 - Jenkins builds fail on downloadable cartridges
The issue still can be reproduced on devenv_4230. WARNING: Caught com.openshift.client.OpenShiftException: Cartridge for bmeng-p2rl-5.10 not found. Will retry 0 more times before canceling build. Jan 16, 2014 1:47:15 AM hudson.plugins.openshift.OpenShiftCloud provision WARNING: Cancelling build due to earlier exceptions com.openshift.client.OpenShiftException: Cartridge for bmeng-p2rl-5.10 not found at hudson.plugins.openshift.OpenShiftSlave.getCartridge(OpenShiftSlave.java:110) at hudson.plugins.openshift.OpenShiftSlave.createApp(OpenShiftSlave.java:235) at hudson.plugins.openshift.OpenShiftSlave.provision(OpenShiftSlave.java:226) at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:474) at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:402) 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) Jan 16, 2014 1:47:15 AM hudson.plugins.openshift.OpenShiftCloud cancelItem INFO: Cancelling Item Jan 16, 2014 1:47:15 AM hudson.plugins.openshift.OpenShiftCloud cancelItem WARNING: Build custom1-build custom1bldr has been canceled
Working for me on devenv_4232. Perhaps I am missing something about your scenario, here are the steps i'm using: 1) create an application with jenkins enabled using a downloadable cartridge: rhc app create mygo "https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart" --enable-jenkins 2) confirm the build definition in jenkins. Specifically, confirm that the "builder type" for the "mygo-build" configuration contains: https://cartreflect-claytondev.rhcloud.com/reflect?github=smarterclayton/openshift-go-cart 3) push a change to the mygo application: cd mygo edit web.go git commit -am . ; git push 4) a gear for the mygobldr application is created and the go cartridge is placed on that gear rch ssh mygo ls (output includes "go" cartridge directory) 5) the build completes successfully. mygo application is updated. Please also confirm your devenv has the 0.6.28 version of the jenkins plugin rpm: jenkins-plugin-openshift-0.6.28-0.el6oso.x86_64
We're going to back this change out for this sprint as we want to solve it a different way, so I'm going to move this back to assigned for now.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/0e9e75f37af22ff2fea091cca24cfdbc4e48accb Revert "Bug 995807 - Jenkins builds fail on downloadable cartridges" This reverts commit a9f5b8ba9302fb78ac60925b9f527c73071cb7fe.
Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/47b49f44ec28144f617d3edb1502dc122ddff50a Bug 995807 - Jenkins builds fail on downloadable cartridges
https://github.com/openshift/origin-server/pull/4532