From e4ab94133582e5708f726080d72464d59dcaf665 Mon Sep 17 00:00:00 2001 From: Isaac Parenteau Date: Wed, 2 Sep 2026 15:50:11 -0500 Subject: [PATCH] Fixed release build numbering --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f442a8..f941691 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -25,7 +25,9 @@ pipeline { env.DEPLOY_BUILD = 'false' - def releaseMatch = branch =~ /^release\/(\d+\.\d+\.\d+)$/ + // A release branch supplies major.minor; Jenkins supplies the patch + // number so release/2.0 build 1 becomes 2.0.1-RELEASE. + def releaseMatch = branch =~ /^release\/(\d+\.\d+)$/ if (releaseMatch.matches()) { env.BUILD_VERSION = "${releaseMatch[0][1]}.${env.BUILD_NUMBER}-RELEASE" env.DEPLOY_BUILD = 'true' -- 2.43.0