minor
This commit is contained in:
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -28,10 +28,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
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