On Tue, May 9, 2017 at 2:54 AM, Christian McHugh <[email protected]> wrote: > This plugin calls an http rest endpoint and polls for the response. The main > activity is sending the request, sleeping for a few seconds, then polling > again. It is in this sleep where we are seeing the InterruptedException.
You must not do this from the CPS VM thread. A correctly written `StepExecution` will do only near-instantaneous work in that thread (say, taking one second at the most). All else must be done in a background thread. See `SleepStep` for a simple example. (`SynchronousNonBlockingStepExecution` is not appropriate here either.) -- 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/CANfRfr2ECy_fPge%3DPzCS%2BNTqXT3%2BX4%3D2X_g3vPAdeaOAkbPJiw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
