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!
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/58b94b91-36a1-4f94-9f23-e8cb48259828%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.