Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Sleep in Pipelines


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?





1 answer

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.

Thank you for the answer. Is it possible to trigger a pipeline lets say "in 30 minutes"?

I don't think there is feature in Scheduled Pipelines to trigger after a timeout. 

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events