got it done finally.... just waiting to publish onto github
On Thursday, October 18, 2012 9:45:15 AM UTC-5, xterm wrote: > > i am a first time poster and first time plugin creator. i am trying to > create a plugin to revert an esx vm to a snapshot during the build step. I > have everything working up to the point where i commit the launch but when > i try and perform the 'setChannel' i get this: > > runtimeexception: java.io.EOFException: unexpected stream termination > > because of this line: > > vsSlave.setChannel(new BufferedInputStream(System.in), > new BufferedOutputStream(System.out), > listener.getLogger(), null); > > i guess i am not doing something right but i am not sure how to make it > right. the documentation says to run setChannel after launch to let > hudson/jenkins know of the etablished connection and to tie inputstream to > slave.jar but im not sure how to do this. i believe that if i do this > correctly, the channel will be synced and i wont get the following error if > this line is not included. > > if i dont include the setchannel in the code, i get another run time > exception: channelalreadyclosed exception. > > --xterm >
