cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thenecroscope1
Helper I
Helper I

Azure DevOps - Queue a new build

Hi, 

 

Is there a way to be able to pause/delay the Azure DevOps "Queue a new build" until the build has actually finished? Ideally I'm after some sort of response code.

 

many thanks,

4 REPLIES 4
jinivthakkar
Super User
Super User

@thenecroscope1 there are two actions for delay, check them out. 

 

jinivthakkar_0-1611239622161.png

 

Not sure but you can also use Switch case and variable, set the value after your build is complete and do as need and if variable value is not what you want just skip (got the idea from approvals flow where we use switch case)

 

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

thenecroscope1
Helper I
Helper I

Whats the best way of setting the variable value to complete? Do I need to run a POST to Azure DevOps to determine the build has finished. Ideally I don't want to just add a default wait time out of x seconds.

 

thanks again

jinivthakkar
Super User
Super User

@thenecroscope1 I agree waiting for a hard-coded value of wait time is not the best approach. I am not sure or how you can check if build is completed but if you know you can set variable after getting your call to check if build was completed.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

I think it might be doable, I'm going to try and use the Azure DevOps Post step and try and track the build status and loop until completion. It adds a few steps, but its the only thing I can think of at the minute. Ideally we want some mechanism within the Azure DevOps Build step, to wait until completion before continuing to the next step. Hopefully this feature will be added in the future

Helpful resources

Announcements
Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,313)