-1

当我尝试在 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)
4

3 回答 3

1

我们正在升级中,这可能是这里的原因。请在升级完成后重试。在此处查看最新状态:https ://openshift.redhat.com/app/status

于 2013-04-03T20:58:29.470 回答
0

问题是我必须“限制这个项目可以在哪里运行”并指定标签(之前它没有它就可以工作..可能是别的东西..)

于 2013-04-04T09:19:04.477 回答
0

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

通常名称如下所示:{project_name}_build

于 2013-09-17T10:11:30.127 回答