svn - TeamCity: labeling VCS (Subversion) with an artifact's file version -


I would like to create a label in the SVN with the version of a file

I already The name of the artwork is changed by acquiring the file version of the main executable produced by the same build. Such as: MyInstaller-1.2.3.1.exe . Now I want to create a tag in the SVN named /tags/1.2.3.1 . I could not find any way to set such a thing in the labeling pattern.

Currently labeling "% system.build.number%"

How do I do this?

I can not find the TeamCity Professional version 4.5.3 (build 9035)

As someone has mentioned, you can output the build number during the execution of the build script, and the team can use that output to label the output. For example, I label my creation with the same version I had inserted in AssemblyInfo.cs. A part of that version (major, minor) is already in the file, the second part (build, modification) is added during build.

From my MS Word script:

  & lt; Target name = "setup" & gt; & Lt ;! - Version.txt includes major and short version numbers, build numbers and revisions come from the environmental variable in the next step - & gt; & Lt; Version versionfile = "Version.txt" buildtype = "none" modification type = "none" & gt; & Lt; Output Task parameter = "major" property name = "major" /> & lt; Output Task Parameter = "Minor" Property Name = "Minor" /> & Lt; / Edition & gt; & Lt ;! - If you want to create a release without knowing the build server, you should define the following 2 environment variables while running this build script - & gt; & Lt ;! - BUILD_NUMBER environment variables provided by the build server - & gt; & Lt; CreateProperty value = "$ (BUILD_NUMBER)" & gt; & Lt; Output Task parameter = "value" property name = "build" /> & Lt; / CreateProperty & gt; & Lt ;! - BUILD_VCS_NUMBER environment variables provided by the build server - & gt; & Lt; CreateProperty value = "$ (BUILD_VCS_NUMBER)" & gt; & Lt; Output Task parameter = "value" property name = "revision" /> & Lt; / CreateProperty & gt; & Lt; Assembly Info CodeLanguage = "CS" OutputFile = "Properties \ VersionInfo.cs" assembly = "$ (major). $ (Minor). $ (Build). $ (Amendment)" assembly fileVersion = "$ (major). $ (Small) $ (Build). $ (Revision) "/> & Lt ;! - Tell the Build server what our real build number is - & gt; & Lt; Message text = "## teamcity [buildman '$ (major). $ (Minor). $ (Build). $ (Revision)']" /> & Lt; / Target & gt;  

You can only output the version during the formatting of the format ## TeamCity [build number & lt; Buildnum> ']


Comments

Popular posts from this blog

c++ - Linux and clipboard -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -