Start process on slave

12 views
Skip to first unread message

Christoph M

unread,
Oct 19, 2015, 9:10:26 AM10/19/15
to Jenkins Developers

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!

Reply all
Reply to author
Forward
0 new messages