ci: escape regex dollar in Jenkins messages
Some checks failed
CI / verify (push) Has been cancelled

This commit is contained in:
2026-05-06 17:29:14 +08:00
parent 014e88afaa
commit 3111e22288
3 changed files with 3 additions and 3 deletions

View File

@@ -43,7 +43,7 @@ pipeline {
error('DATABASE 不能为空。')
}
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'