This is an automated email from the ASF dual-hosted git repository.
lprimak pushed a commit to branch 3.x
in repository https://gitbox.apache.org/repos/asf/shiro.git
The following commit(s) were added to refs/heads/3.x by this push:
new 66a0febe1 fix(jenkins): update version retrieval to exclude alpha,
beta, and RC versions
66a0febe1 is described below
commit 66a0febe1e7458baf688ecef58c1bc45af4be0b7
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 828febcd3..7752954c2 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()