Skip to content

Commit

Permalink
Post release was supposed to be stable
Browse files Browse the repository at this point in the history
Forgot to port the stable regex for post-releases in the giant #81 PR.
  • Loading branch information
rustydb committed Apr 12, 2023
1 parent 924f2d5 commit 72f0ea0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Jenkinsfile.github
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ if (env.BRANCH_NAME ==~ ~"^PR-\\d+") {
return
}

// Only consider X.Y.Z tags as stable, do not consider X.Y.Z{[a|b|rc]N} or X.Y.Z.* tags as stable.
// Only consider X.Y.Z and X.Y.Z.postN tags as stable.
// Never consider X.Y.Z{[a|b|rc} or X.Y.Z.* tags (that are not post-releases) as stable.
// The ==~ operator performs an exact match.
def stableToken = ~/v?\d+\.\d+\.\d+/
def stableToken = ~/v?\d+\.\d+\.\d+(\.post\d+)?/
def isStable = (env.TAG_NAME != null & env.TAG_NAME ==~ stableToken) ? true : false
pipeline {
agent {
Expand Down Expand Up @@ -141,7 +142,7 @@ pipeline {
image "${pythonImage}:${PYTHON_VERSION}-${DOCKER_ARCH}"
}
}

steps {
script {
def sleVersion = sh(returnStdout: true, script: 'awk -F= \'/VERSION_ID/{gsub(/["]/,""); print \$NF}\' /etc/os-release').trim()
Expand Down

0 comments on commit 72f0ea0

Please sign in to comment.