Skip to content

Instantly share code, notes, and snippets.

@dougm
Created August 3, 2010 18:19
Show Gist options
  • Save dougm/506855 to your computer and use it in GitHub Desktop.
Save dougm/506855 to your computer and use it in GitHub Desktop.
import hudson.model.*
import hudson.slaves.*
node = new DumbSlave("testing", "Testing node", "/home/hudson", "2", Node.Mode.NORMAL, "test label", new JNLPLauncher(), new RetentionStrategy.Always(), new ArrayList())
hudson.model.Hudson.instance.addNode(node)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment