Force build to top of queue when triggered
Asked Answered
B

2

6

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.

Betimes answered 5/8, 2015 at 15:52 Comment(2)
Does it depend on anything?Cordes
@LasseV.Karlsen Nope, it is triggered every day at 6pm no matter what.Betimes
B
0

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.

Betimes answered 8/9, 2015 at 14:43 Comment(0)
S
1

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"

Sweaty answered 13/8, 2015 at 10:53 Comment(1)
I notice that is documentation for Teamcity 9.X. I checked the 7.X documentation and didn't find a similar option. Also, I'd really like not to have to code a separate tool for triggering this one build. Unless you can point me to that feature for 7.X, I can't accept this answer. Sorry.Betimes
B
0

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.

Betimes answered 8/9, 2015 at 14:43 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.