0
我們使用Jenkins的CI。Jenkins的NodeProvisioner在mesos集羣中
我們使用
https://github.com/rji/jenkins-standalone
按
https://github.com/jenkinsci/mesos-plugin
我們試圖下手詹金斯
"-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
但是我們不能夠啓動詹金斯,顯示
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
任何建議
謝謝詹日誌。