Обновить Jenkinsfile
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -21,11 +21,6 @@ pipeline {
|
||||
VERSION_FILE=src/main/resources/META-INF/ncore-product/$PRODUCT_GROUP/version.properties
|
||||
VERSION=$(sed -n 's/^version=//p' "$VERSION_FILE")
|
||||
|
||||
if [[ ! "$VERSION" =~ ^[0-9]+(.[0-9]+)*(-[A-Za-z]+)?$ ]]; then
|
||||
echo "Invalid version format: $VERSION" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "$VERSION"
|
||||
''',
|
||||
returnStdout: true
|
||||
|
||||
Reference in New Issue
Block a user