Ok, FilePath.act. Got it.

On Monday, 6 January 2020 19:01:36 UTC-5, Randall Becker wrote:
>
> 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/b5b59ad0-c643-4738-893d-52a1ada1f87c%40googlegroups.com.

Reply via email to