I am writing a Jenkins CI plugin. It runs on the slave machine where I want to start a process. I tried this by writing the following code inside the invoke method in a FileCallable:
ArgumentListBuilder args = new ArgumentListBuilder();
args.addTokenized(nsisExecutable.toString() + " " + scriptFile.getAbsolutePath());
ProcessBuilder proc = new ProcessBuilder(args.toList());
listener.getLogger().println(" -> Process arguments: " + args.toList());
listener.getLogger().println("Launching NSIS...");
int nsisReturn = proc.start().waitFor();
listener.getLogger().println("NSIS returned: " + nsisReturn);When running this the last log output is:
Launching NSIS...
Then I just see the spinning wheel but nothing happens anymore... Can you guys help me? Thanks!