ci: escape regex dollar in Jenkins messages
Some checks failed
CI / verify (push) Has been cancelled
Some checks failed
CI / verify (push) Has been cancelled
This commit is contained in:
@@ -52,7 +52,7 @@ pipeline {
|
|||||||
error('DATABASE 不能为空。')
|
error('DATABASE 不能为空。')
|
||||||
}
|
}
|
||||||
if (!(params.DATABASE.trim() ==~ /^[a-z0-9]+(-[a-z0-9]+)*$/)) {
|
if (!(params.DATABASE.trim() ==~ /^[a-z0-9]+(-[a-z0-9]+)*$/)) {
|
||||||
error("DATABASE 必须匹配 ^[a-z0-9]+(-[a-z0-9]+)*$: ${params.DATABASE}")
|
error("DATABASE 必须匹配 ^[a-z0-9]+(-[a-z0-9]+)*\$: ${params.DATABASE}")
|
||||||
}
|
}
|
||||||
if (!params.API_ENV_FILE?.trim()) {
|
if (!params.API_ENV_FILE?.trim()) {
|
||||||
error('API_ENV_FILE 不能为空。')
|
error('API_ENV_FILE 不能为空。')
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ pipeline {
|
|||||||
error('DATABASE 不能为空。')
|
error('DATABASE 不能为空。')
|
||||||
}
|
}
|
||||||
if (!(params.DATABASE.trim() ==~ /^[a-z0-9]+(-[a-z0-9]+)*$/)) {
|
if (!(params.DATABASE.trim() ==~ /^[a-z0-9]+(-[a-z0-9]+)*$/)) {
|
||||||
error("DATABASE 必须匹配 ^[a-z0-9]+(-[a-z0-9]+)*$: ${params.DATABASE}")
|
error("DATABASE 必须匹配 ^[a-z0-9]+(-[a-z0-9]+)*\$: ${params.DATABASE}")
|
||||||
}
|
}
|
||||||
|
|
||||||
def spacetimeRootDir = params.SPACETIME_ROOT_DIR?.trim() ? params.SPACETIME_ROOT_DIR.trim() : '/stdb'
|
def spacetimeRootDir = params.SPACETIME_ROOT_DIR?.trim() ? params.SPACETIME_ROOT_DIR.trim() : '/stdb'
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ pipeline {
|
|||||||
error('DATABASE 不能为空。')
|
error('DATABASE 不能为空。')
|
||||||
}
|
}
|
||||||
if (!(params.DATABASE.trim() ==~ /^[a-z0-9]+(-[a-z0-9]+)*$/)) {
|
if (!(params.DATABASE.trim() ==~ /^[a-z0-9]+(-[a-z0-9]+)*$/)) {
|
||||||
error("DATABASE 必须匹配 ^[a-z0-9]+(-[a-z0-9]+)*$: ${params.DATABASE}")
|
error("DATABASE 必须匹配 ^[a-z0-9]+(-[a-z0-9]+)*\$: ${params.DATABASE}")
|
||||||
}
|
}
|
||||||
|
|
||||||
def inputSource = params.INPUT_SOURCE?.trim()
|
def inputSource = params.INPUT_SOURCE?.trim()
|
||||||
|
|||||||
Reference in New Issue
Block a user