Hello,
I have a pipeline that needs to wait until a service was successfully deployed. This will take approximately 30 minutes. My question is, is it generally a good idea to use the sleep function within the pipeline to wait and then look periodically if the deployment was successful or is there a better way to do that? What happens with my "bitbucket build minutes"? Does the time where the process is sleeping count to this?
Best,
Wolfgang.
If the deployment step can tag the repository when it's done, then you can trigger a pipeline off the tag.
I think the build minutes are used if you sleep within the pipeline script.
Is the other service deployed via Bitbucket?
If yes, you could consider running the pipeline as a consequent step to the previous service deployment. This will ensure the ordering. If its a different pipeline you can trigger the other pipeline via a pipe.
If no, you could trigger the pipeline via a POST API after the other service comes up. This would however require a script on the server where the service is running.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think there is feature in Scheduled Pipelines to trigger after a timeout.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.