简体   繁体   中英

Should application version be stored in source control (e.g. Git) or CI?

We're migrating from locally run build/deploy scripts to a CI server. As of now, we keep the application version (C# AssemblyInfo.cs), which works decently.

I was wondering if there were any advantages/disadvantages of keeping the version inside our CI system rather than Git. I am unable to find much information on the subject.

I work in a team which has multiple modules . I would prefer you store your version number in the CI system and tag your versioned code in Git .

The reason is that if you store your version in , say a file system. It becomes problematic over a period of time to increment it and share it across different modules. The overhead is not justified especially when versioning and auto incrementing solutions come out of the box with many build/ CI systems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM