不能在openshift jenkins上建立

时间:2013-04-03 16:15:19

标签: jenkins openshift

当我尝试在openshift jenkins上构建项目时,我得到以下异常

Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Provisioning new node for workload = 2 and label = null
Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Cancelling build - Label is null
Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud cancelBuild
INFO: Cancelling build
Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
INFO: Cancelling Item 
Apr 03, 2013 12:08:27 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
WARNING: Build null rawbldr has been canceled
Apr 03, 2013 12:08:27 PM hudson.triggers.SafeTimerTask run
SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@6d7414 failed
java.lang.UnsupportedOperationException: No Label
    at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:391)
    at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:227)
    at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
    at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:308)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.TimerThread.mainLoop(Timer.java:555)
    at java.util.TimerThread.run(Timer.java:505)

3 个答案:

答案 0 :(得分:1)

我们正在升级,这可能是这里的原因。请在升级完成后再试一次。要获取最新状态,请点击此处:https://openshift.redhat.com/app/status

答案 1 :(得分:0)

问题是我必须“限制此项目可以运行的位置”并指定标签(早期它没有它工作..可能是别的......)

答案 2 :(得分:0)

如果你想在openshift jenkins上构建一些东西,它需要与jenkins作业工作区连接(你可以在使用Enable Jenkins builds选项在openhift应用程序中启用它时生成它)。然后添加自动创建的jenkins作业选项Restrict where this project can be run,并放置对工作区的引用。

通常名称如下:{project_name} _build