Question:
Idea is to get the status of the deployment after the deployment command is run, If the status saysPending
, sleep for 30 seconds and check again untill the status is Completed
, catch here being, timeout is 300 seconds. (if the deployment is not Completed within 300 seconds, exit with return code 1.)Any help in handling this scenario in more generic and elegantly, thanks.
Answer:
I don’t think that you can do it “generically” in a different manner.If you have better answer, please add a comment about this, thank you!