Add build tag from a build step

Is it possible to add a build tag (https://confluence.jetbrains.com/display/TCD9/Build+Tag) from a build step?

I'm looking for something similar to setting the build number which is as simple as writing ##teamcity[buildNumber '$buildNumber'] ... but I could not find any way of automatically adding tags.
Something like ##teamcity[addTag 'release']

Thanks

3 comments
Comment actions Permalink

Hi Rodrigo,

It is not possible now. Please watch and vore for the related feature requests: https://youtrack.jetbrains.com/issue/TW-38619, https://youtrack.jetbrains.com/issue/TW-19949

0
Comment actions Permalink

Hi Rodrigo,

Maybe you already thought of it, but as a workaround I do rest call to tag a certain build.

eg. POST http://<server-loc>:8080/httpAuth/app/rest/builds/id:%dep.<buildConfKey>.teamcity.build.id%/tags/ with as a plain text body the tag.

More info: https://confluence.jetbrains.com/display/TCD10/REST+API#RESTAPI-BuildTags

Regards,

Kris.

1
Comment actions Permalink

Also would like some form of build script interaction as the original request proposed. 

0

Please sign in to leave a comment.