This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch 10.0.x
in repository 
https://gitbox.apache.org/repos/asf/incubator-kie-kogito-images.git


The following commit(s) were added to refs/heads/10.0.x by this push:
     new d580775d [10.0.x] NO-ISSUE: set 10.0.x as a tag (#1781)
d580775d is described below

commit d580775da771b6af059740be23a369d473f06565
Author: Jan Stastny <[email protected]>
AuthorDate: Fri Jul 19 14:58:00 2024 +0200

    [10.0.x] NO-ISSUE: set 10.0.x as a tag (#1781)
    
    Co-authored-by: jstastny-cz <[email protected]>
---
 .ci/jenkins/Jenkinsfile.setup-branch | 2 +-
 scripts/manage-kogito-version.py     | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.ci/jenkins/Jenkinsfile.setup-branch 
b/.ci/jenkins/Jenkinsfile.setup-branch
index 10bcead4..ade24b15 100644
--- a/.ci/jenkins/Jenkinsfile.setup-branch
+++ b/.ci/jenkins/Jenkinsfile.setup-branch
@@ -53,7 +53,7 @@ pipeline {
             steps {
                 script {
                     dir(getRepoName()) {
-                        versionCmd = "python scripts/manage-kogito-version.py 
--bump-to ${getKogitoVersion()} --confirm"
+                        versionCmd = "python scripts/manage-kogito-version.py 
--bump-to ${getBuildBranch()} --confirm"
                         versionCmd += " --examples-ref 
nightly-${getBuildBranch()}"
                         if (getKogitoArtifactsVersion()) {
                             versionCmd += " --artifacts-version 
${getKogitoArtifactsVersion()}"
diff --git a/scripts/manage-kogito-version.py b/scripts/manage-kogito-version.py
index 10950d22..733d94a7 100644
--- a/scripts/manage-kogito-version.py
+++ b/scripts/manage-kogito-version.py
@@ -51,8 +51,8 @@ if __name__ == "__main__":
 
     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 = ""


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to