简体   繁体   中英

Continuous Delivery with Maven: Why not just use the build number a the artifact's version?

I'm in the process of implementing CD with Maven and Jenkins and was just wondering:

Instead of Maven's major.minor.version scheme for the version, why not just use Jenkins build number?

That way the whole versioning could be fully automated, right?

You could do so... However, all platform have some recommended versioning system that you should follow such as

MacOS have 3 digit versioning system
Windows have 4 digit versioning.

You can easily achieve it, just write shell script to modify it in your jenkins build configuration.

major.minor.<you can have jenkins build number>

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