title: Jenkins slave not working on mesos
body: <p>I'm using the jenkins mesos plugin for CI.
  Initially, I followed the following tutorial: <a href="http://www.ebaytechblog.com/2014/05/12/delivering-ebays-ci-solution-with-apache-mesos-part-ii/" rel="nofollow">http://www.ebaytechblog.com/2014/05/12/delivering-ebays-ci-solution-with-apache-mesos-part-ii/</a></p>
  
  <p>but the jenkins itself was not being setup via this. (I got error could not load config.xml file, even there was one)</p>
  
  <p>Then I followed <a href="https://rogerignazio.com/blog/scaling-jenkins-mesos-marathon/" rel="nofollow">https://rogerignazio.com/blog/scaling-jenkins-mesos-marathon/</a> 
  , and I was able to run jenkins master (jenkin framework/scheduler), but when I define the scripts to run, the jenkins-slaves are not being created. I think I'm missing some configuration regarding slaves. Can you tell me, what's the reason that the slaves are not being created to run jobs.</p>
  
  <p>On the jenkins build page, I'm getting :</p>
  
  <pre><code>(pending—Waiting for next available executor)
  </code></pre>
  
  <p>And in the jenkins-logs, i'm getting following error:</p>
  
  <pre><code>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 &lt;init&gt;
  INFO: Constructing MesosComputerLauncher
  Jun 19, 2015 4:02:55 PM org.jenkinsci.plugins.mesos.MesosSlave &lt;init&gt;
  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
  </code></pre>
  
  <p>Edit: I think I'm getting error, because I've not defined any container port mappings.
  Can anyone tell me how to do so?</p>
  
  <p>Update : Actually there were many problems with 0.7 version of mesos plugin. So, I simply downgraded to 0.6 version.</p>