Skip to content

Commit 6d58ac8

Browse files
author
Taniya Mathur
committed
update codepipeline config to run in queue mode and added finally for cleanup in case of failure
1 parent 130f03a commit 6d58ac8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/sdlc/cfn/codepipeline-s3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ Resources:
155155
- export IDP_CFN_PREFIX=$(make cfn-prefix) || { echo "CFN prefix generation failed"; exit 1; }
156156
- make install -e IDP_CFN_PREFIX=$IDP_CFN_PREFIX
157157
- make smoketest -e IDP_CFN_PREFIX=$IDP_CFN_PREFIX
158-
post_build:
159-
commands:
158+
finally:
160159
- echo "Running cleanup regardless of build result..."
161160
- make uninstall -e IDP_CFN_PREFIX=$IDP_CFN_PREFIX || echo "Cleanup failed but continuing"
162161
@@ -165,6 +164,7 @@ Resources:
165164
Properties:
166165
Name: !Ref PipelineName
167166
RoleArn: !GetAtt CodePipelineRole.Arn
167+
ExecutionMode: QUEUED
168168
ArtifactStore:
169169
Type: S3
170170
Location: !Ref ArtifactBucket

0 commit comments

Comments
 (0)