Starting a build - no response with Build identifier...

I'm writing a script to interact with TC remotely for our Release Management process - but i cannot get a handle to the build that i started.

i am starting builds by GETting this:

http://testuser:testpassword@teamcity.jetbrains.com/httpAuth/action.html?add2Queue=bt10&system
        .name=<property name1>&system.value=<value1>&system.name=<property name2>&system
        .value=<value2>&env.name=<environment variable name1>&env.value=<environment variable
           value1>&env.name=<environment variable name2>&env.value=<environment variable value2



i was planning to poll to see when it was done, but add2Queue does not respond with a handle to the build. (the buildid)  

how do i do this?   is this possible?  also, is it possible to auto-tag the build?  or do i need the build itself to call TC rest to add a tag to itself?

thanks!
1 comment
Comment actions Permalink

Trevor,

Unfortunately, getting ID of the triggered build is not possible currently.

See the corresponding feature request.

Currently, you can try to add a propety to the build you start and then list all the builds one by one to find the build with the necessary property. (yes, this looks way too complex and the mentioned issue is a proper solution)

0

Please sign in to leave a comment.