Include the build number in the build version
This commit is contained in:
parent
379891e106
commit
18d800bfe5
1 changed files with 2 additions and 1 deletions
|
@ -10,7 +10,8 @@ node() {
|
|||
|
||||
def config = ocutil.parseConfig(readFile("deployment/config.yaml"))
|
||||
|
||||
def buildVersion = sh(script: "${gitVersionCmd} /showvariable FullSemVer", returnStdout: true).trim()
|
||||
def fullSemVer = sh(script: "${gitVersionCmd} /showvariable FullSemVer", returnStdout: true).trim()
|
||||
def buildVersion = "${fullSemVer}+${currentBuild.number}"
|
||||
def tagVersion = sh(script: "${gitVersionCmd} /showvariable MajorMinorPatch", returnStdout: true).trim()
|
||||
echo "versions: buildVersion=${buildVersion}, tagVersion=${tagVersion}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue