Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 605755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:10:48+00:00 2026-05-13T17:10:48+00:00

I want to create create a label (tag) in the SVN with a file’s

  • 0

I want to create create a label (tag) in the SVN with a file’s version.

I’m already renaming the artifact by getting the file version of the main executable produced by the build. Such as: MyInstaller-1.2.3.1.exe. Now I want to create a tag in the SVN called /tags/1.2.3.1. I couldn’t find a way to set such a thing in the labeling pattern.

Currently my labeling is just “%system.build.number%”

Any idea about how to do this?

I’m using TeamCity Professional Version 4.5.3 (build 9035)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T17:10:49+00:00Added an answer on May 13, 2026 at 5:10 pm

    As someone mentioned, you can output the build number during the execution of the build script, and teamcity will use that output to label the build. For example, I label my build with the same version that I put into AssemblyInfo.cs. Part of that version (Major, Minor) is actually in the file already, the other part (Build, Revision) gets added during the build.

    From my msbuild script:

    <Target Name="Setup">
        <!-- Version.txt contains the major and minor version numbers, 
             The build number and revision come from environment variables
             in the next step -->
        <Version VersionFile="Version.txt" BuildType="None" RevisionType="None">
            <Output TaskParameter="Major" PropertyName="Major" />
            <Output TaskParameter="Minor" PropertyName="Minor" />
        </Version>
    
        <!-- If you want to build a release without going through the build
             server, you should define the following 2 environment variables
             when running this build script -->
    
        <!-- BUILD_NUMBER environment variable supplied by the build server -->
        <CreateProperty
            Value="$(BUILD_NUMBER)">
            <Output
                TaskParameter="Value"
                PropertyName="Build" />
        </CreateProperty>
    
        <!-- BUILD_VCS_NUMBER environment variable supplied by the build server -->
        <CreateProperty
            Value="$(BUILD_VCS_NUMBER)">
            <Output
                TaskParameter="Value"
                PropertyName="Revision" />
        </CreateProperty>       
    
        <AssemblyInfo CodeLanguage="CS"  
            OutputFile="Properties\VersionInfo.cs" 
            AssemblyVersion="$(Major).$(Minor).$(Build).$(Revision)" 
            AssemblyFileVersion="$(Major).$(Minor).$(Build).$(Revision)" />
    
        <!-- Tell the build server what our actual build number is -->
        <Message Text="##teamcity[buildNumber '$(Major).$(Minor).$(Build).$(Revision)']" />
    </Target>
    

    you just output the version during the build the format is ##teamcity[buildNumber '<buildnum>']

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi i want to create a multiline Custom Label in Blackberry I have created
I want to create a fading effect of text in Label control. I change
I want to know how to create a label that contains two icons, one
I want to create a select tag for countries that when we select the
I want to create my own tag, but it doesn't work Component: package com;
I created a label using Interface Builder, and now I want to set the
I want to create a pairs plot in R that has labels on the
In my app i have created one custom class for Label.Now i want to
i want create multiple search where statement $where_search is a multiple condition from post
I want create wordpress website into which I want create user management... That means

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.