Skip to content

Commit

Permalink
fix(3105): Handle mergeSharedSteps annotation for pipeline template (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyi authored May 30, 2024
1 parent 6f26967 commit 46d8704
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ async function parsePipelineTemplate({ yaml }) {
sharedConfig: pipelineTemplateConfig.shared,
jobConfig: pipelineTemplateConfig.jobs[j]
});
delete mergedJobs[j].annotations['screwdriver.cd/mergeSharedSteps'];
});
delete pipelineTemplateConfig.shared;
pipelineTemplateConfig.jobs = mergedJobs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
},
"jobs": {
"extra": {
"annotations": {
"screwdriver.cd/mergeSharedSteps": true
},
"annotations": {},
"environment": {
"FOO": "BAR"
},
Expand All @@ -34,9 +32,7 @@
]
},
"main": {
"annotations": {
"screwdriver.cd/mergeSharedSteps": false
},
"annotations": {},
"environment": {
"FOO": "BAR"
},
Expand Down

0 comments on commit 46d8704

Please sign in to comment.