fix(ci): schedule coordinator on builder agents
This commit is contained in:
@@ -5,6 +5,11 @@ import test from 'node:test'
|
||||
const pipeline = (await readFile(new URL('../Jenkinsfile', import.meta.url), 'utf8'))
|
||||
.replaceAll('\r\n', '\n')
|
||||
|
||||
test('coordinator runs only on the shared Java builder pool', () => {
|
||||
assert.match(pipeline, /agent \{ label 'java-builder' \}/)
|
||||
assert.doesNotMatch(pipeline, /agent any/)
|
||||
})
|
||||
|
||||
test('AUTO detects database migrations without expanding them to all services', () => {
|
||||
assert.match(pipeline, /def databaseMigrationPaths = \['deploy\/sql\/'\]/)
|
||||
assert.match(pipeline, /!databaseMigration && commonPaths\.any/)
|
||||
|
||||
Reference in New Issue
Block a user