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

后端 未结 3 1525
不知归路
不知归路 2020-12-30 17:17

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 produ

3条回答
  •  失恋的感觉
    2020-12-30 18:06

    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:

    
        
        
            
            
        
    
        
    
        
        
            
        
    
        
        
            
               
    
        
    
        
        
    
    

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

提交回复
热议问题