From eaa1fd96b5022bea0bc98945bad2c7c484a1fdef Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 3 Feb 2026 10:20:35 -0300 Subject: [PATCH] ci: align tags with build number --- Jenkinsfile | 7 +++++-- VERSION_BASE | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ddb9cb9..e2fa0e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -123,8 +123,11 @@ spec: if (!base) { base = "0.1.0" } - def count = sh(returnStdout: true, script: 'git rev-list --count HEAD').trim() - semver = "${base}-${count}" + def buildNum = env.BUILD_NUMBER?.trim() + if (!buildNum) { + buildNum = sh(returnStdout: true, script: 'git rev-list --count HEAD').trim() + } + semver = "${base}-${buildNum}" } sh "echo SEMVER=${semver} > build.env" } diff --git a/VERSION_BASE b/VERSION_BASE index 17e51c3..d917d3e 100644 --- a/VERSION_BASE +++ b/VERSION_BASE @@ -1 +1 @@ -0.1.1 +0.1.2