Openshift-Jenkins在构建期间似乎不发送节点标签
我正试图让HA Openshift Origin在CentOS 6.5上运行(每夜运行一次,但可能需要几天时间),但最后要运行的是Jenkins 当我手动或在git推送之后启动应用程序的构建时,会出现以下错误:Openshift-Jenkins在构建期间似乎不发送节点标签,jenkins,openshift,Jenkins,Openshift,我正试图让HA Openshift Origin在CentOS 6.5上运行(每夜运行一次,但可能需要几天时间),但最后要运行的是Jenkins 当我手动或在git推送之后启动应用程序的构建时,会出现以下错误: Jun 06, 2014 2:24:52 PM hudson.plugins.openshift.OpenShiftCloud provision INFO: Provisioning new node for workload = 2 and label = null in domai
Jun 06, 2014 2:24:52 PM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Provisioning new node for workload = 2 and label = null in domain stu
Jun 06, 2014 2:24:52 PM hudson.plugins.openshift.OpenShiftCloud provision
INFO: Cancelling build - Label is null
Jun 06, 2014 2:24:52 PM hudson.plugins.openshift.OpenShiftCloud cancelBuild
INFO: Cancelling build
Jun 06, 2014 2:24:52 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
INFO: Cancelling Item
Jun 06, 2014 2:24:52 PM hudson.plugins.openshift.OpenShiftCloud cancelItem
WARNING: Build null rawbldr has been canceled
Jun 06, 2014 2:24:52 PM hudson.triggers.SafeTimerTask run
SEVERE: Timer task hudson.slaves.NodeProvisioner$NodeProvisionerInvoker@f01ba81 failed
java.lang.UnsupportedOperationException: No Label
at hudson.plugins.openshift.OpenShiftCloud.provision(OpenShiftCloud.java:402)
at hudson.slaves.NodeProvisioner.update(NodeProvisioner.java:281)
at hudson.slaves.NodeProvisioner.access$000(NodeProvisioner.java:51)
at hudson.slaves.NodeProvisioner$NodeProvisionerInvoker.doRun(NodeProvisioner.java:366)
at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
看看Jenkins插件的代码:看起来作业配置中的标签集的值由于一些奇怪的原因没有被接收到,所以构建器设备没有旋转起来
这与Openshift Online的这一老问题非常相似,但从评论中不清楚除了“维护”之外的实际原因:
我尝试过的其他方法似乎都很好,所以我不确定这是一个bug,还是某个地方的错误配置
谢谢
- Openshift origin夜间套餐
- 詹金斯1.564(1.564-1.1)
- openshift原始墨盒jenkins(1.22.1-1.git.0.3f73f10.el6)
- openshift原始盒带jenkins客户端(1.21.1-1.git.0.93d6489.el6)
- Openshift Jenkins云插件1.4(0.6.36-0.el6oso)
我已经在一台流浪机器上复制了这个问题,所以我现在假设它是我正在运行的包的组合
从夜间回购中运行的人是否可以指定他们运行的上述各项的哪些包版本没有问题?谢谢我用最新的Openshift云插件试用了几个不同版本的Jenkins
- 1.510-工作正常,但有点旧
- 1.554-如果设置JENKINS\u JAR\u CACHE\u PATH env var(请参阅)
- 1.564-点击上面的问题,从来没有旋转齿轮更不用说启动詹金斯奴隶
file { '/etc/openshift/env/JENKINS_JAR_CACHE_PATH':
ensure => present,
content => '/tmp/',
require => File['/etc/openshift/env/'],
owner => 'root',
group => 'root',
mode => '0644',
}
Openshift的家伙显然在不久的将来会默认使用v1.554。我也遇到了同样的问题(这就是我在这里遇到的问题),我的解决办法是去管理Jenkins>配置系统,然后将“#of executors”字段设置为1