fix: stream artifact download progress to jobs
This commit is contained in:
@@ -1671,7 +1671,7 @@ function combineCommandResults(command: string[], parts: CommandResult[]): Comma
|
||||
}
|
||||
|
||||
function downloadRemoteFile(options: ArtifactRegistryOptions, remotePath: string, localPath: string, timeoutMs = options.timeoutMs): CommandResult {
|
||||
return runCommand([
|
||||
const result = runCommand([
|
||||
process.execPath,
|
||||
"scripts/cli.ts",
|
||||
"ssh",
|
||||
@@ -1681,7 +1681,12 @@ function downloadRemoteFile(options: ArtifactRegistryOptions, remotePath: string
|
||||
"64000",
|
||||
remotePath,
|
||||
localPath,
|
||||
], repoRoot, { timeoutMs });
|
||||
], repoRoot, {
|
||||
timeoutMs,
|
||||
teeStdoutFile: process.env.UNIDESK_JOB_STDOUT_FILE,
|
||||
teeStderrFile: process.env.UNIDESK_JOB_STDERR_FILE,
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
async function runRemoteScriptBackground(
|
||||
|
||||
Reference in New Issue
Block a user