Skip to content

codepipeline: There should be a way to insert a stage before an existing one (and not append) #347

@eladb

Description

@eladb

Currently, Pipelines only allows appending stages. This creates a limitation in usability. For example, we have a general purpose construct that defines a pipeline for code library builds. The current pipeline has two stages: build and release. We wish to implement a method .addTest(...), which will conditionally "inject" another stage between "build" and "release" only if it's called. If there are no tests, there should still be two stages.

Maybe we can do something like new Stage(pipeline, 'Bla', { insertBefore: someOtherStage }).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions