Skip to content

Commit

Permalink
[10.0.x] NO-ISSUE: set 10.0.x as a tag (apache#1781)
Browse files Browse the repository at this point in the history
Co-authored-by: jstastny-cz <[email protected]>
  • Loading branch information
jstastny-cz and jstastny-cz committed Jul 23, 2024
1 parent afaf9a8 commit b34a8bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/jenkins/Jenkinsfile.setup-branch
Original file line number Diff line number Diff line change
Expand Up @@ -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()}"
Expand Down
4 changes: 2 additions & 2 deletions scripts/manage-kogito-version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit b34a8bf

Please sign in to comment.