This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/main by this push:
new c4079ba91 fix(jenkins): update version retrieval to exclude alpha,
beta, and RC versions
c4079ba91 is described below
commit c4079ba9196c7ef419ec9c47e4be9aa097c2d6fb
Author: lprimak <[email protected]>
AuthorDate: Fri Feb 27 13:39:52 2026 -0600
fix(jenkins): update version retrieval to exclude alpha, beta, and RC
versions
---
.jenkins.groovy | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/.jenkins.groovy b/.jenkins.groovy
index 463ae5f9d..d89fb3057 100644
--- a/.jenkins.groovy
+++ b/.jenkins.groovy
@@ -98,7 +98,9 @@ pipeline {
script {
def latestRelease = sh(script: """
curl -sf
https://repo.maven.apache.org/maven2/org/apache/shiro/shiro-root/maven-metadata.xml
\
- | xmllint --xpath
'//metadata/versioning/latest/text()' - 2>/dev/null || echo '$builtinVersion'
+ | xmllint --xpath
'//metadata/versioning/versions/version/text()' - 2>/dev/null \
+ | egrep -vi "alpha|beta|RC"|tail -n1 \
+ || echo '$builtinVersion'
""", returnStdout: true
).trim()