Build queued time
How can I get the queued time of a build based on its given build number? Can this information be obtained in the build itself via a system variable? I looked through the environment variables, but I could not find anything there to indicate when the build was queued. If it is not part of the build itself, is there an API call that will return the queued time?
I am looking to query the TeamCity API for builds [filtered via] after a certain date/time by a given user. I know that I can do this using the build locator. Before I can do that though, I need to know what the queued time is for a given build number/ID, thus my original question.
Even if I could get the build start time, that would be helpful but not as helpful as when it was originally queued.
Please sign in to leave a comment.
We need to find all the builds queued/triggered by a given user at the same time (i.e. part of a single job). In other words, we have multiple build configurations that a user can submit as a group of personal builds at one single time. We need to get them all as a single collection. How can we do that?
For anyone else who might need this in the future, here's the TeamCity API URL to hit for this information: