ci: If only tests change, use artifacts from last successful build (#14927)

This commit is contained in:
Ashcon Partovi
2024-10-31 12:50:09 -07:00
committed by GitHub
parent 4b8ca51b87
commit 353d44f1ae
2 changed files with 89 additions and 14 deletions

View File

@@ -1010,9 +1010,16 @@ async function getExecPathFromBuildKite(target) {
const releasePath = join(cwd, "release");
mkdirSync(releasePath, { recursive: true });
const args = ["artifact", "download", "**", releasePath, "--step", target];
const buildId = process.env["BUILDKITE_ARTIFACT_BUILD_ID"];
if (buildId) {
args.push("--build", buildId);
}
await spawnSafe({
command: "buildkite-agent",
args: ["artifact", "download", "**", releasePath, "--step", target],
args,
});
let zipPath;