-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
codepipeline: There should be a way to insert a stage before an existing one (and not append) #347
Comments
@eladb what do you think of something like this: new Stage(pipeline, 'Stage', {
atIndex: 3,
}); similarly, like you can do Thoughts on this? |
I think |
Do you also want something like |
I started working on this, and there's an interesting conundrum. Currently, the I implemented a temporary workaround of calling Any ideas on how to get around this? |
Gah. I tried to work around it by making |
The only way I could come up with that didn't suck was changing the |
Moved to PR #460 after problems with the fork when the repo was changed to public. |
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 })
.The text was updated successfully, but these errors were encountered: