詹金斯奴隶没有在mesos上工作

时间:2015-06-19 15:38:58

标签: jenkins mesos mesosphere marathon

我正在使用jenkins mesos插件进行CI。 最初,我遵循了以下教程:http://www.ebaytechblog.com/2014/05/12/delivering-ebays-ci-solution-with-apache-mesos-part-ii/

但是jenkins本身并没有通过这个设置。 (我得错误无法加载config.xml文件,即使有一个)

然后我跟着https://rogerignazio.com/blog/scaling-jenkins-mesos-marathon/ ,我能够运行jenkins master(jenkin framework / scheduler),但是当我定义要运行的脚本时,jenkins-slaves没有被创建。我想我缺少一些关于奴隶的配置。你能告诉我,为什么没有创建奴隶来运行工作的原因。

在jenkins构建页面上,我得到了:

(pending—Waiting for next available executor)

在jenkins-logs中,我遇到了以下错误:

INFO: Provisioning Jenkins Slave on Mesos with 1 executors. Remaining excess workload: 0 executors)
Jun 19, 2015 4:02:55 PM hudson.slaves.NodeProvisioner$StandardStrategyImpl apply
INFO: Started provisioning MesosCloud from MesosCloud with 1 executors. Remaining excess workload: 0
Jun 19, 2015 4:02:55 PM org.jenkinsci.plugins.mesos.MesosComputerLauncher <init>
INFO: Constructing MesosComputerLauncher
Jun 19, 2015 4:02:55 PM org.jenkinsci.plugins.mesos.MesosSlave <init>
INFO: Constructing Mesos slave mesos-jenkins-1f8691df-9918-4175-87b3-bcc3de80b258 from cloud 
Jun 19, 2015 4:03:05 PM org.jenkinsci.plugins.mesos.MesosComputerLauncher launch
INFO: Launching slave computer mesos-jenkins-1f8691df-9918-4175-87b3-bcc3de80b258
Jun 19, 2015 4:03:05 PM org.jenkinsci.plugins.mesos.MesosComputerLauncher launch
INFO: Sending a request to start jenkins slave mesos-jenkins-1f8691df-9918-4175-87b3-bcc3de80b258
Jun 19, 2015 4:03:05 PM org.jenkinsci.plugins.mesos.JenkinsScheduler requestJenkinsSlave
INFO: Enqueuing jenkins slave request
Jun 19, 2015 4:03:05 PM hudson.slaves.NodeProvisioner update
INFO: MesosCloud provisioning successfully completed. We have now 2 computer(s)
java.lang.NullPointerException
    at org.jenkinsci.plugins.mesos.JenkinsScheduler.matches(JenkinsScheduler.java:306)
    at org.jenkinsci.plugins.mesos.JenkinsScheduler.resourceOffers(JenkinsScheduler.java:252)
Jun 19, 2015 4:03:06 PM org.jenkinsci.plugins.mesos.JenkinsScheduler$1 run
SEVERE: The Mesos driver was aborted! Status code: 3

编辑:我认为我收到错误,因为我没有定义任何容器端口映射。 谁能告诉我怎么做?

更新:实际上0.7版的mesos插件存在很多问题。所以,我只是降级到0.6版本。

1 个答案:

答案 0 :(得分:0)

对于马拉松上的端口映射,请查看here

希望这有帮助!