So basically this runs the deploy-release for our two projects pretty much at the same time and hence both projects are deployed at the same time.
But we would like to only deploy proj2 once the proj1 deployment has been completed.
If anyone has any idea on how / if this could be achieved, that’d be great
Can we get the status of an Octopus deployment via command line for example ?
Thanks for getting in touch! It looks like you’re after the --waitForDeployment flag for the octo.exe deploy-release command. We have a list of the different options available on the documentation I have linked, but here’s the text for this one:
--waitForDeployment [Optional] Whether to wait synchronously for
deployment to finish.
I have done a quick test on my end with the foreach loop in your example and it worked great for me. Just append it anywhere in the command and it will wait for each deployment to complete before starting the next loop.
Let me know if this helps or if you have any further questions at all.