perf(ci): reuse Git workspaces across builds

This commit is contained in:
2026-08-22 17:53:18 +08:00
parent 309900de82
commit 46e5c14b86
4 changed files with 7 additions and 11 deletions
@@ -84,3 +84,9 @@ test('Java service images use the internal registry base image by default', () =
assert.doesNotMatch(pipeline, /docker\.m\.daocloud\.io\/library\/eclipse-temurin/)
assert.doesNotMatch(serviceDockerfile, /docker\.m\.daocloud\.io\/library\/eclipse-temurin/)
})
test('source workspaces are preserved for incremental Git fetches', () => {
assert.match(pipeline, /checkout scm/)
assert.equal((pipeline.match(/cleanWs\(/g) ?? []).length, 2)
assert.doesNotMatch(coordinatorPipeline, /cleanWs\(/)
})