-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for automatically overriding the values of "BUILDS_TODAY", "BUILDS_THIS_MONTH", "BUILDS_THIS_YEAR" and "BUILDS_ALL_TIME" with values taken from environment-variables. Instead of just providing a simple number in the form-fields of the job's plugin-configuration which overrides the value for the next build, one can now provide an environment-variable whose value will be extracted and used instead during the next builds. If it is not set or its value is not convertible to a positive integer, the value of the previous build will be taken instead and increased by one. Signed-off-by: Deniz Bahadir <dbahadir@benocs.com>
- Loading branch information
1 parent
786ffe3
commit 5a669b5
Showing
3 changed files
with
204 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
<div> | ||
If a number is specified here, it will override the number tracked from build to build and the next build | ||
will use this number instead. If left blank, it will increment the number from the previous build if necessary, | ||
and use that. If no previous build used the Version Number Plugin, then this defaults to 1. Negative numbers | ||
are not allowed. | ||
<p> | ||
If left blank, the next build will increment the number from the previous build if necessary, | ||
and use that. If no previous build used the Version Number Plugin, then this defaults to 1. | ||
</p> | ||
<p> | ||
If a number is specified here, it will override the number tracked from build to build and the | ||
next build will use this number instead. Negative numbers are not allowed and will be ignored. | ||
</p> | ||
<p> | ||
If an environment-variable is specified here, its value will be retrieved during the next build | ||
and will be used as number. However, if that environment-variable is not set or its value is not | ||
a (positive) number, the standard behavior will kick in as if this field was left blank. (That | ||
means, the number from the previous build will be incremented and used.) | ||
</p> | ||
<p> | ||
Other values will be ignored as if left blank. | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters