Hey Jesse and all,

First off, sorry to keep bugging you, but I'm not sure how to go about 
getting this plugin going and I'm hoping you have ideas or could point me 
in the proper direction. 

At this point I'm a bit stuck, and not very sure how to proceed. I think I 
must use something like:

getContext().newBodyInvoker().withContext(<run api call 
here>).withCallback(BodyExecutionCallback.wrap(getContext())).start();

But I am now stuck on how I should go about setting up finished(), start(), 
stop(), or onResume() methods. Basically, I think I understand how to start 
my communication with the saltapi, but I don't understand how the callback 
process works that I can somehow notify jenkins when the long running job 
polling returns something. 
The orginal code that is working but gets killed after 5 minutes, is 
available on the master branch:
https://github.com/jenkinsci/saltstack-plugin/blob/master/src/main/java/com/waytta/SaltAPIStep.java

While the non-functional code I've been messing with is in the 
async-pipeline branch. 
https://github.com/jenkinsci/saltstack-plugin/blob/async-pipeline/src/main/java/com/waytta/SaltAPIStep.java

If you can provide any help, or direct me to someone who can, it would be 
greatly appreciated.

-- 
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/6d7a992e-c57e-478b-bc78-6d3da050bf4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to