-
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
Code Pipeline: Stage(step) skipping condition support #32045
Comments
|
@ashishdhingra I can see that const pipeline = new codepipeline.Pipeline(this, "pipeline", {
stages: [
{
stageName: "Source",
actions: [sourceAction],
},
{
stageName: "Build",
actions: [
new codepipeline_actions.CodeBuildAction({
project: buildProject,
input: sourceOutput,
outputs: [buildOutput],
variablesNamespace: "BuildImage"
}),
],
},
// skip this if #{BuildImage.MIGRATION_FLAG} = false
{
stageName: "Migration",
actions: [
new codepipeline_actions.CodeBuildAction({
actionName: "Run_Migration",
project: runMigrationBuild,
input: buildOutput, // Pass build output with imageDetail.json
}),
],
},
]
}); |
I was able to create L3 pipeline then extent with L1 contruct as following. const l1Pipeline = pipeline.node.defaultChild as codepipeline.CfnPipeline;
l1Pipeline.addOverride('Properties.Stages.2.BeforeEntry', {
Conditions: [
{
Result: "SKIP",
Rules: [
{
Name: "Skip_Migration",
RuleTypeId: {
Category: "Rule",
Owner: "AWS",
Provider: "VariableCheck",
Version: "1"
},
Configuration: {
Variable: "#{BuildImage.MIGRATION_FLAG}",
Value: "false",
Operator: "EQ"
},
}
]
}
]
}); |
Just want to add something. Additions of L3 construct for both codepipeline and cdk pipeline would be amazing. |
Describe the feature
Pretty early but code pipeline now support skipping stage base on various of condition.
One of them is variable's value and it would be so much helpful if CDK support it.
https://aws.amazon.com/about-aws/whats-new/2024/10/aws-codepipeline-skipping-stage/
According to docment below, CF already supporting it
https://docs.aws.amazon.com/codepipeline/latest/userguide/stage-conditions.html#stage-conditions-onsuccess
Use Case
I want to use pipeline variable and skipping stage base on it.
Proposed Solution
No response
Other Information
No response
Acknowledgements
CDK version used
2
Environment details (OS name and version, etc.)
MacOS
The text was updated successfully, but these errors were encountered: