Force build to top of queue when triggered

1.5k Views Asked by At

I have a single agent and many builds. There are frequently several builds in the queue that take an hour a piece to execute. I want to trigger daily at a specific time a build which takes less than five seconds but needs to run immediately (next in the queue). Is there any way to do this?

Build priorities are suggested in various places but they do not help. I set the priority to the max value of 100 and it was placed at 15 out of 17 in the queue.

2

There are 2 best solutions below

0
On BEST ANSWER

I ended up working around the problem and moving this build to another practically dedicated teamcity agent which means this executes promptly. This is not a good solution and I would prefer to accept an actual answer if anyone is able to offer one.

1
On

You can use Teamcity REST to trigger the build and put on top of the queue. You can make use of triggering option queueAtTop="true"