fix(ci): keep Jenkins boolean continuations parseable
This commit is contained in:
@@ -11,6 +11,7 @@ test('coordinator releases its builder while waiting for downstream jobs', () =>
|
||||
assert.match(pipeline, /agent \{ label 'java-builder' \}/)
|
||||
assert.doesNotMatch(pipeline, /agent any/)
|
||||
assert.doesNotMatch(pipeline, /cleanWs\(/)
|
||||
assert.doesNotMatch(pipeline, /^\s*(?:&&|\|\|)/m)
|
||||
})
|
||||
|
||||
test('coordinator runs selected tests once before parallel service packaging', () => {
|
||||
|
||||
@@ -13,6 +13,10 @@ const ciMavenSettings = (await readFile(new URL('../deploy/maven/settings-ci.xml
|
||||
const serviceDockerfile = (await readFile(new URL('../deploy/docker/Dockerfile', import.meta.url), 'utf8'))
|
||||
.replaceAll('\r\n', '\n')
|
||||
|
||||
test('service pipeline keeps boolean operators on parseable Groovy continuation lines', () => {
|
||||
assert.doesNotMatch(pipeline, /^\s*(?:&&|\|\|)/m)
|
||||
})
|
||||
|
||||
test('test deployments compile packages without rerunning the full unit test suite', () => {
|
||||
assert.match(pipeline, /params\.ENVIRONMENT == 'test' \|\| params\.SKIP_TESTS/)
|
||||
assert.match(pipeline, /skipTestExecution \? '-DskipTests' : ''/)
|
||||
|
||||
Reference in New Issue
Block a user