fix(job-builder): persist deliverables to workspace PVC after pipeline completes
Without --output, copyDeliverables() is skipped after the workflow finishes, so the final report and all agent deliverables are lost when the emptyDir volumes are cleaned up on pod exit. Pass --output pointing to the workspace's deliverables/ subdir on the workspaces PVC so files survive beyond the pod lifecycle. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -29,7 +29,14 @@ export function buildJobSpec(params: JobParams): k8s.V1Job {
|
||||
|
||||
// 1. Build worker command
|
||||
const command = ['node', 'apps/worker/dist/temporal/worker.js', params.targetUrl, repoPath];
|
||||
const args: string[] = ['--task-queue', params.taskQueue, '--workspace', params.workspace];
|
||||
const args: string[] = [
|
||||
'--task-queue',
|
||||
params.taskQueue,
|
||||
'--workspace',
|
||||
params.workspace,
|
||||
'--output',
|
||||
`/app/workspaces/${params.workspace}/deliverables`,
|
||||
];
|
||||
if (params.pipelineTesting) {
|
||||
args.push('--pipeline-testing');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user