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 

任何建议

谢谢詹日志。

回答

2

得到了解决方案。

之前需要

-jar jenkins.war \ 

通过

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

这些变量谢谢。

相关问题