2015-06-19 151 views
0

我使用jenkins mesos插件的CI。 最初,我遵循以下教程:http://www.ebaytechblog.com/2014/05/12/delivering-ebays-ci-solution-with-apache-mesos-part-ii/詹金斯奴隶不工作mesos

但詹金斯本身并没有通过这个设置。 (我得到错误无法加载config.xml文件,甚至有一个)

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

在詹金斯建立网页,我越来越:

(pending—Waiting for next available executor) 

而在詹金斯-日志,我得到以下错误:

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版本。

回答

0

对于马拉松上的港口映射看看here

希望这有助于!

+0

其实0.7版本的mesos插件有很多问题。所以,我只是降级到0.6版本。 – manish

+0

嗨@manish,有降级帮助你遇到的问题?我在0.12上遇到了完全相同的问题,我也尝试过0.8,没有运气。一些詹金斯奴隶作为服务是好的,但有一些我有同样的确切问题 – Zerg12