Get build number of another build without a snapshot or artifact dependency


We currently have a snapshot dependency set up on another build so that we can grab and use it's build number (it is basically a set of regression tests that run on previously built binaries).

However, this regularly triggers the downstream dependency to start building, and the regression build to wait for a long time.

We just want the build number of the last successful build - we don't want to trigger a snapshot build, and we don't want to create an artifact dependency (the other build doesn't even publish any artifacts).

Literally the only thing I want to resolve is the build number of the last successful build of the other project, without doing anything else, but I can't find a way to do it.

How can I go about this? I have found the documentation about the Rest URL that can be used to get a last successful build number, but as far as I know I can't resolve this API call into a TeamCity property that I can use in my other build.



Please sign in to leave a comment.