Include the build number in the build version

This commit is contained in:
Ovidio Mallo 2017-01-03 01:33:29 +01:00
parent 379891e106
commit 18d800bfe5

View file

@ -10,7 +10,8 @@ node() {
def config = ocutil.parseConfig(readFile("deployment/config.yaml")) 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() def tagVersion = sh(script: "${gitVersionCmd} /showvariable MajorMinorPatch", returnStdout: true).trim()
echo "versions: buildVersion=${buildVersion}, tagVersion=${tagVersion}" echo "versions: buildVersion=${buildVersion}, tagVersion=${tagVersion}"