--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/XoC9AF4ZQMc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/daabcd88-dd9f-4557-93eb-011802702a73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- http://javadoc.jenkins-ci.org/hudson/model/Slave.html#setNumExecutors(int)
You might need to execute save afterwards:
- http://javadoc.jenkins-ci.org/hudson/model/Node.html#save()
Cheers
groovy.lang.MissingMethodException: No signature of method: hudson.slaves.DumbSlave.setNumExecutors() is applicable for argument types: (java.lang.Integer) values: [1] Possible solutions: getNumExecutors(), getNumExecutors() at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:46)
...
A bit more research and I found this, though I'm not clear on the final response from Jesse Glick.
https://issues.jenkins-ci.org/browse/JENKINS-23534
It appears he's saying that modifying the number of executors is possible, but you need to replace the whole slave? Not sure how to do this - it would be a lot easier if I could just call setNumExecutors.
I would have preferred a simple job that ran periodically and just
adjusted the number of executors on each slave, but I came up with an alternate approach.
Not as clean, but it meets my needs for now.