helpermethod
helpermethod

Reputation: 62185

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?

Upvotes: 0

Views: 344

Answers (1)

Anni S
Anni S

Reputation: 2026

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>

Upvotes: 1

Related Questions