This commit is contained in:
2026-01-30 19:31:37 +03:00
parent 9159d45435
commit b0b47cdc05

8
Jenkinsfile vendored
View File

@@ -27,13 +27,11 @@ pipeline {
versionText += it.trim();
}
echo versionText
def matcher = versionText =~ /^version=((\d+\.)*\d+)(?:-([A-Za-z]+))?$/
if (!matcher.matches()) {
def m = (versionText =~ /^version=(((\d+\.)*\d+)(?:-[A-Za-z]+)?)$/)
if (!m) {
error "Invalid version format: ${versionText}"
}
env.VERSION = matcher[0][1]
env.VERSION = m[0][1]
echo "Extracted VERSION: ${env.VERSION}"
}
}