From 63cd8d4344eb582026cc8a924bd0d81f7897121d Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Tue, 6 Aug 2024 08:45:00 -0400 Subject: [PATCH] NO-ISSUE: set build branch as a tag Co-authored-by: jstastny-cz # Conflicts: # .ci/jenkins/Jenkinsfile.setup-branch --- scripts/manage-kogito-version.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/manage-kogito-version.py b/scripts/manage-kogito-version.py index 10950d222..733d94a74 100644 --- a/scripts/manage-kogito-version.py +++ b/scripts/manage-kogito-version.py @@ -51,8 +51,8 @@ if args.bump_to: # validate if the provided version is valid. - # e.g. 1.10.0, 1.0.0-rc1, 999-snapshot or 999-20240101-snapshot - pattern = r'(\d+.\d+.)?(\d+$|\d+-rc\d+$|\d+(-\d{8})?-snapshot$)' + # e.g. 1.10.0, 10.0.x, 1.0.0-rc1, 999-snapshot or 999-20240101-snapshot + pattern = r'(\d+.\d+.)?(x$|\d+$|\d+-rc\d+$|\d+(-\d{8})?-snapshot$)' regex = re.compile(pattern, re.IGNORECASE) valid = regex.match(args.bump_to) examples_ref = ""