-
Bug
-
Resolution: Fixed
-
Major
When the remote job is still waiting for an available executor, the job that triggered the remote job, gives a build failed status.
Triggering this remote job: *****
Checking that the remote job ***** is not currently building.
Remote job remote job ***** is not currenlty building.
This job is build #[**] on the remote server.
Triggering remote job now.
Blocking local job until remote job completes
ERROR: Remote build failed for the following reason:
ERROR: http://****/job/***/**/api/json
Finished: FAILURE
Fixed it myself.
When the build is waiting for an executor, the constructed url returns a 404 message.
I added a loop where it tries to get a new response (every 5 seconds, max 5 min) instead of immediately sending a build failed signal.