Handle pre-generated buildnumber
This commit is contained in:
parent
9246812fbf
commit
7b1eb1142f
1 changed files with 6 additions and 0 deletions
|
|
@ -295,6 +295,12 @@ class BuildStampInfo extends GISJsonSerialised {
|
|||
|
||||
// Override the buildstamp
|
||||
void override(String buildstamp) {
|
||||
def s = buildstamp.split('\\.')
|
||||
if (s.size() != 4) {
|
||||
script.error("Overriding build stamp: ${buildstamp} is not of the format: 1.2.3.4")
|
||||
}
|
||||
this.stampprefix = "${s[0]}.${s[1]}.${s[2]}"
|
||||
this.revision = "${s[3]}".toInteger()
|
||||
this.buildstamp = buildstamp
|
||||
script.echo("Build stamp overridden to: ${this.buildstamp}")
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue