Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,10 @@ public void setMaxConcurrentCount(Integer maxConcurrentCount) {
public void setMaxConcurrentPercentage(Integer maxConcurrentPercentage) {
super.setMaxConcurrentPercentage(maxConcurrentPercentage);
}

@DataBoundSetter
@Override
public void setRegionConcurrencyType(String regionConcurrencyType) {
super.setRegionConcurrencyType(regionConcurrencyType);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public void updateExistingStackStackSetWithOperationPreferences() throws Excepti
);
job.setDefinition(new CpsFlowDefinition(""
+ "node {\n"
+ " cfnUpdateStackSet(stackSet: 'foo', operationPreferences: [failureToleranceCount: 5, regionOrder: ['us-west-2'], failureTolerancePercentage: 17, maxConcurrentCount: 18, maxConcurrentPercentage: 34])"
+ " cfnUpdateStackSet(stackSet: 'foo', operationPreferences: [failureToleranceCount: 5, regionOrder: ['us-west-2'], failureTolerancePercentage: 17, maxConcurrentCount: 18, maxConcurrentPercentage: 34, regionConcurrencyType: 'SEQUENTIAL'])"
+ "}\n", true)
);
jenkinsRule.assertBuildStatusSuccess(job.scheduleBuild2(0));
Expand All @@ -135,6 +135,7 @@ public void updateExistingStackStackSetWithOperationPreferences() throws Excepti
.withFailureTolerancePercentage(17)
.withMaxConcurrentCount(18)
.withMaxConcurrentPercentage(34)
.withRegionConcurrencyType("SEQUENTIAL")
);

Mockito.verify(stackSet).waitForOperationToComplete(operationId, Duration.ofSeconds(1));
Expand Down