ci: align tags with build number

This commit is contained in:
Brad Stein 2026-02-03 10:20:35 -03:00
parent 9d90d32370
commit eaa1fd96b5
2 changed files with 6 additions and 3 deletions

7
Jenkinsfile vendored
View File

@ -123,8 +123,11 @@ spec:
if (!base) { if (!base) {
base = "0.1.0" base = "0.1.0"
} }
def count = sh(returnStdout: true, script: 'git rev-list --count HEAD').trim() def buildNum = env.BUILD_NUMBER?.trim()
semver = "${base}-${count}" if (!buildNum) {
buildNum = sh(returnStdout: true, script: 'git rev-list --count HEAD').trim()
}
semver = "${base}-${buildNum}"
} }
sh "echo SEMVER=${semver} > build.env" sh "echo SEMVER=${semver} > build.env"
} }

View File

@ -1 +1 @@
0.1.1 0.1.2