Skip to content

Commit

Permalink
feat(preconfiguredJobs): support produce artifacts (#6845)
Browse files Browse the repository at this point in the history
adds support for producing artifacts by preconfigured job stages
  • Loading branch information
ethanfrogers authored Apr 12, 2019
1 parent 37e24d7 commit af8fa5f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ interface IPreconfiguredJob {
description?: string;
waitForCompletion?: boolean;
parameters?: IPreconfiguredJobParameter[];
producesArtifacts: boolean;
}

export const PRECONFIGUREDJOB_STAGE = 'spinnaker.core.pipeline.stage.preconfiguredJobStage';
Expand All @@ -32,7 +33,7 @@ module(PRECONFIGUREDJOB_STAGE, []).run(() => {
.getList()
.then((preconfiguredJobs: IPreconfiguredJob[]) => {
preconfiguredJobs.forEach(preconfiguredJob => {
const { label, description, type, waitForCompletion, parameters } = preconfiguredJob;
const { label, description, type, waitForCompletion, parameters, producesArtifacts } = preconfiguredJob;
const defaults = {
parameters: parameters.reduce(
(acc, parameter) => {
Expand All @@ -58,6 +59,7 @@ module(PRECONFIGUREDJOB_STAGE, []).run(() => {
waitForCompletion,
parameters,
},
producesArtifacts,
});
});
});
Expand Down

0 comments on commit af8fa5f

Please sign in to comment.