Hi all,

I am trying to modify a custom Jenkins Plugin to automatically upload a 
shell script and then execute it to facilitate job execution. Using a 
separate plugin is not a viable option for reasons I can't really go into 
here. I'm having difficulty figuring out how to provide a valid stdin in a 
Controller/Agent structure. Is there a preferred mechanism or example of 
doing this somewhere? What I am attempting is:

String content = "stuff... ";

ByteArrayInputStream loadContentStream = new 
ByteArrayInputStream(content.getBytes());
Launcher.ProcStarter starter = launcher.launch();
Launcher.ProcStarter cmdStarter = starter.cmds(usedArgs);
Launcher.ProcStarter outStarter = cmdStarter.stdout(streamBuildListener);
Launcher.ProcStarter inStarter = outStarter.stdin(loadContentStream);


When the shell executes, I'm seeing: 

Resource temporarily unavailable

errors on every process I try.


Any suggestions or pointers?

Thanks in advance,
Randall

-- 
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/234f87a8-1d3e-4bb8-9eee-834cccd2f955%40googlegroups.com.

Reply via email to