【问题标题】:NodeProvisioner for Jenkins in mesos clusterMesos 集群中 Jenkins 的 NodeProvisioner
【发布时间】:2015-09-01 16:05:12
【问题描述】:

我们将 Jenkins 用于 CI。

我们用过

https://github.com/rji/jenkins-standalone

根据

https://github.com/jenkinsci/mesos-plugin

我们尝试用

来启动 jenkins
"-Dhudson.slaves.NodeProvisioner.MARGIN=50 -Dhudson.slaves.NodeProvisioner.MARGIN0=0.85"

喜欢

# Start the master
export JENKINS_HOME="$(pwd)"

java -jar jenkins.war \
    -Djava.awt.headless=true \

    --webroot=war \
    --httpPort=${PORT} \
    --ajp13Port=-1 \
    --httpListenAddress=0.0.0.0 \
    --ajp13ListenAddress=127.0.0.1 \
    --preferredClassLoader=java.net.URLClassLoader \
    -Dhudson.slaves.NodeProvisioner.MARGIN=30 \
    -Dhudson.slaves.NodeProvisioner.MARGIN0=0.6 \
    --logfile=../jenkins.log

但是我们无法启动jenkins,jenkins日志显示

Running from: /var/jenkins/jenkins-standalone/jenkins.war
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at Main._main(Main.java:293)
        at Main.main(Main.java:98)
Caused by: java.lang.IllegalArgumentException: Multiple command line argument specified: -Djava.hudson.slaves.NodeProvisioner.MARGIN=30
        at winstone.cmdline.CmdLineParser.parse(CmdLineParser.java:68)
        at winstone.Launcher.getArgsFromCommandLine(Launcher.java:361)
        at winstone.Launcher.main(Launcher.java:334)
        ... 6 more

任何建议

谢谢。

【问题讨论】:

    标签: jenkins continuous-integration jenkins-plugins mesos mesosphere


    【解决方案1】:

    找到解决方案。

    需要通过

    "-Dhudson.slaves.NodeProvisioner.MARGIN=50 -Dhudson.slaves.NodeProvisioner.MARGIN0=0.85"
    

    这些变量之前

    -jar jenkins.war \
    

    谢谢。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-01-28
      • 1970-01-01
      • 2016-04-22
      • 1970-01-01
      • 1970-01-01
      • 2016-06-13
      • 1970-01-01
      • 2016-08-21
      相关资源
      最近更新 更多