我们用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
有什么建议吗
谢谢您。
1条答案
按热度按时间kx1ctssn1#
找到解决办法了。
需要通过吗
之前的这些变量
谢谢您。