Our company’s Jenkins has master and two slave nodes. I am writing plugin for it. One of the things for plugin to do is to checkout some files from svn. This action cannot be extracted from plugin.
To do this I execute console command “svn checkout” from java code of my plugin. The problem is that files from svn are checked out to master, rather than to slave nodes.
How can I make files be checked out to slave?
Our company’s Jenkins has master and two slave nodes. I am writing plugin for
Share
First you have these objects, usually received as parameters for
performmethod:Then you have created and added arguments to an argumentListBuilder, maybe something like:
Then, do something like:
ProcStarter will run the command at the node specified by the
launcherinstance. But please at least glance over the javadocs of all above classes before using, above is not direct copy-paste from working code.