How can I label my build with revision number and not the GUID (in TeamCity)?

后端 未结 6 656
忘了有多久
忘了有多久 2021-01-30 11:15

I am trying to do \"continuous integration\" with TeamCity. I would like to label my builds in a incremental way and the GUID provided by the VCS is not as usefull as a simple i

6条回答
  •  自闭症患者
    2021-01-30 11:50

    I managed to use it in Teamcity using a workaround:

        
        
            
        
        
    

    If you see the MSBuild task "TeamCitySetBuildNumber" I'm using the "{build.number}" variable because it substitutes this with what you set in the build number originally. I used %build.vcs.number% in my original settings (in the Web UI) and the result is just what Ry4an wrote above!

    Hope it works for you!

提交回复
热议问题