-
New Feature
-
Resolution: Fixed
-
Major
-
None
Sometimes I want to be able to block the execution of the current build until the completion of the remote build. In this case, I also want to decide whether the current build should be marked as failed in case the remote build failed or if it should just ignore it and continue.
Hint: the async-http-client is a shared lib plugin which might help you to implement this: https://wiki.jenkins-ci.org/display/JENKINS/Async+Http+Client+Plugin
Thanks for the tip.
The tricky part with this will be trying to figure out when the actual build starts on the remote server.
Because build numbers are assigned when the build starts (not when it's scheduled) I am yet to find a way to accurately identify the newly scheduled build.
Currently I triggering the remote job with delay=0, which in theory should move that build to the top of the queue (I think?). But I need to do more testing with a "busy" job to confirm.