Skip to content

Commit

Permalink
tweak upload tested pipeline script to archive the generated pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
delanni committed May 13, 2024
1 parent 7e0a821 commit 6efc68b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .buildkite/pipelines/upload_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ steps:
echo "Uploading pipeline $TESTED_PIPELINE_PATH"
buildkite-agent pipeline upload $TESTED_PIPELINE_PATH
else
$TESTED_PIPELINE_PATH | buildkite-agent pipeline upload
$TESTED_PIPELINE_PATH > /tmp/pipeline_steps.yml
buildkite-agent artifact upload '/tmp/pipeline_steps.yml'
buildkite-agent pipeline upload '/tmp/pipeline_steps.yml'
fi
2 changes: 1 addition & 1 deletion .buildkite/scripts/pipelines/pull_request/pipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ const getPipeline = (filename: string, removeSteps = true) => {
// remove duplicated steps
console.log([...new Set(pipeline)].join('\n'));
} catch (ex) {
console.error('PR pipeline generation error', ex.message);
console.error('Error while generating the pipeline steps: ' + ex.message, ex);
process.exit(1);
}
})();

0 comments on commit 6efc68b

Please sign in to comment.