Hi,
Can we create some junit tests accessing a remote Jenkins Server and able to have access to a slave ?
Example of code that I would like to test
package groovy
import hudson.model.AbstractBuild;
import hudson.remoting.Channel;
def Channel channel;
def AbstractBuild build;
if(build.getWorkspace().isRemote()){
channel = build.getWorkspace().channel
println "Got a channel :-)"
}
def wksString = build.get
println "Remote WKS: $wksString"
String src = wksString + "/" + "pom.xml"
pomFile = new hudson.FilePath(channel, src)
....
Cheers
Charles