詹金斯在openshift“Cartridge for not found”

时间:2014-05-29 21:16:32

标签: jenkins openshift

我试图在openshift上创建一个非常简单的Jenkins设置。以下是我遵循的步骤: 1.使用“Jenkins Server”盒式磁带创建一个新的openshift应用程序。 2.使用提供的用户名和密码登录到新的Jenkins服务器。 3.使用shell构建步骤创建一个非常简单的自由式构建,该步骤回显一些文本。 4.运行构建

新版本在jenkins服务器UI中短暂显示然后消失,因此我检查了jenkins服务器应用程序中的日志以查找一些错误消息。

May 29, 2014 4:55:41 PM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Reload ResponseCode: 200
May 29, 2014 4:55:41 PM hudson.plugins.openshift.OpenShiftCloud reloadConfig
INFO: Config reload result: 
May 29, 2014 4:55:41 PM hudson.plugins.openshift.OpenShiftSlave <init>
INFO: Creating slave with 15mins time-to-live
May 29, 2014 4:55:41 PM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Caught com.openshift.client.OpenShiftException: Cartridge for  not found. Will retry 0 more times before canceling build.
May 29, 2014 4:55:46 PM hudson.plugins.openshift.OpenShiftCloud provision
WARNING: Cancelling build due to earlier exceptions
com.openshift.client.OpenShiftException: Cartridge for  not found
    at hudson.plugins.openshift.OpenShiftSlave.getCartridge(OpenShiftSlave.java:129)
    at hudson.plugins.openshift.OpenShiftSlave.createApp(OpenShiftSlave.java:262)
    at hudson.plugins.openshift.OpenShiftSlave.provision(OpenShiftSlave.java:253)
    at hudson.plugins.openshift.OpenShiftCloud.provisionSlave(OpenShiftCloud.java:489)
    at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:413)
    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)
May 29, 2014 4:55:46 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
INFO: Cancelling Item 

似乎缺少一些配置会告诉openshift哪个盒式磁带用于新的从设备,但我不知道在哪里配置它。非常感谢任何帮助,谢谢!

1 个答案:

答案 0 :(得分:0)

我实际上遇到了同样的问题。 如果您的代码已经配置了rhc,请运行:

$ rhc cartridge add jenkins-client-1 -a jboss1

根据:https://www.openshift.com/developers/jenkins