Jenkins奴隶不在麦索斯工作

sqyvllje  于 2021-06-21  发布在  Mesos
关注(0)|答案(1)|浏览(345)

我在用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从机。我想我遗漏了一些关于奴隶的配置。你能告诉我,为什么奴隶没有被创造出来来管理工作。
在Jenkins构建页面上,我得到:

(pending—Waiting for next available executor)

在Jenkins的日志里,我发现了以下错误:

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

编辑:我想我得到了错误,因为我没有定义任何容器端口Map。有人能告诉我怎么做吗?
更新:实际上mesos插件的0.7版本有很多问题。所以,我干脆降到了0.6版本。

4smxwvx5

4smxwvx51#

有关marathon上的端口Map,请看这里。
希望这有帮助!

相关问题