Git: Using tags as branches

I am interested in using Git tags as branches for retrieving artifacts from a build, but have been unable to get this to work.  This is very briefly described on the following wiki page, but I am looking for further examples of how this can be done:

https://confluence.jetbrains.com/display/TCD8/Git+%28JetBrains%29

I have attempted retrieving artifacts from a URL such as the following, but nothing is available:

http://teamcity/repository/download/my_tc_project/.lastSuccessful/teamcity-ivy.xml?branch=my_git_tag


Can anyone provide examples of how this documented feature works?


Thanks,

Brian

1 comment
Comment actions Permalink

Hi Brian,

If you check "Use tags as branches" then you can use tags as branches, for example:

+:refs/tags/mytag
+:refs/tags/(mytag1)

To retrieving artifacts from a URL you should use:

http://localhost:8111/repository/download/<buildTypeId>/.lastSuccessful/teamcity-ivy.xml?branch=refs/tags/mytag
http://localhost:8111/repository/download/< buildTypeId >/.lastSuccessful/teamcity-ivy.xml?branch=mytag1

where branch is logical branch name.

0

Please sign in to leave a comment.