Issue Type: Bug Bug
Affects Versions: current
Assignee: vjuranek
Components: groovy, slave-status
Created: 23/Jun/14 9:49 AM
Description:

I would like to set the number of executors on a slave node in a build step. I tried doing that with a Groovy system script, but it seems to me this is not possible, since the setNumExecutors(int) method is only implemented by jenkins.model.Jenkins, which will however only affect the master node. The method is not accessible through the 'Node', 'Slave' or 'Computer' classes, which would allow me to do that on a slave. For example, like this

Hudson.instance.getComputer("SlaveName").setNumExecutors(1)

Project: Jenkins
Labels: groovy api slave executor
Priority: Minor Minor
Reporter: David Engster
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to