minor
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -27,11 +27,13 @@ pipeline {
|
|||||||
versionText += it.trim();
|
versionText += it.trim();
|
||||||
}
|
}
|
||||||
echo versionText
|
echo versionText
|
||||||
def m = (versionText =~ /^version=(((\d+\.)*\d+)(?:-[A-Za-z]+)?)$/)
|
def m = (versionText =~ /^version=(((\d+\.)*\d+)(?:-[A-Za-z]+)?)$/)
|
||||||
if (!m) {
|
|
||||||
|
if (!m.find()) {
|
||||||
error "Invalid version format: ${versionText}"
|
error "Invalid version format: ${versionText}"
|
||||||
}
|
}
|
||||||
env.VERSION = m[0][1]
|
|
||||||
|
env.VERSION = m.group(1)
|
||||||
echo "Extracted VERSION: ${env.VERSION}"
|
echo "Extracted VERSION: ${env.VERSION}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user