My Jenkins server is configured with two jobs A and B.
Task A starts from changes in subversive work, runs unit tests and, if successful, creates a WAR and deploys it to another environment.
If task A is successfully completed, then task B starts. This task runs tests against a deployed WAR.
The problem is that the deployment process takes some time and the WAR is not ready on time when Job B starts and tries to use it.
I am looking for ideas on how to defer work B until the WAR starts working.
Is there a way when Job B starts to wait x seconds? I really don't want to put it in tests in Job B if I can avoid it.
thank
source
share