I am trying to figure out a way to create Build Tags on items in Git
My thoughts were to have Jenkins do the tagging as seen by the article below.
According to this article: http://www.nailedtothex.org/roller/kyle/entry/configuring-automatic-push-by-successfully
My understanding is that the version numbers are to be generated in the following way:
(Major version).(Minor version).(Revision number).(Build number)
1.2.3 (11BCF) <- Build number, should correspond with a revision in source control
^ ^ ^
| | |
| | +--- Minor bugs, spelling mistakes, etc.
| +----- Minor features, major bug fixes, etc.
+------- Major version, UX changes, file format changes, etc.
according to this message: https://softwareengineering.stackexchange.com/questions/3199/what-version-naming-convention-do-you-use
I have 4 levels for the project that PRODUCTION, TEST, CONSOLIDATION, DEVELOPMENT.
The releases look like
PRODUCTION (generate deploy build only if major/minor/revision number changes)
^ (send to STABLE repository)
|
TEST (generate deploy build only if major/minor/revision number changes)
^
|
CONSOLIDATION (generate all of the time)
^
|
DEVELOPMENT (generate all of the time)
How can I fix the $BUILD_NUMBER so that it ($BUILD_NUMBER) is generated according to: (Major version).(Minor version).(Revision number).(Build number)
What can I pass to a Jenkins Job (during configuration) so that it recognizes changes in the (Major version).(Minor version).(Revision number)
Is there a better way to make this happen?
TIA