diff --git a/src/main/java/de/taimos/pipeline/aws/cloudformation/stacksets/JenkinsStackSetOperationPreferences.java b/src/main/java/de/taimos/pipeline/aws/cloudformation/stacksets/JenkinsStackSetOperationPreferences.java index a715055..7dcd206 100644 --- a/src/main/java/de/taimos/pipeline/aws/cloudformation/stacksets/JenkinsStackSetOperationPreferences.java +++ b/src/main/java/de/taimos/pipeline/aws/cloudformation/stacksets/JenkinsStackSetOperationPreferences.java @@ -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); + } } diff --git a/src/test/java/de/taimos/pipeline/aws/cloudformation/stacksets/CFNUpdateStackSetStepTest.java b/src/test/java/de/taimos/pipeline/aws/cloudformation/stacksets/CFNUpdateStackSetStepTest.java index f8ce69b..4646f11 100644 --- a/src/test/java/de/taimos/pipeline/aws/cloudformation/stacksets/CFNUpdateStackSetStepTest.java +++ b/src/test/java/de/taimos/pipeline/aws/cloudformation/stacksets/CFNUpdateStackSetStepTest.java @@ -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)); @@ -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));