Build phase loops, even though its successfull

0

Hi,

In the pipeline, the build phase completes the build, then immediately kicks off another build and will do this until stopped. Each build is successful, but it never progresses to deployment.

What can I check to see why this is happening?

This is the last 10 or so lines from a successful build output

[Container] 2021/03/21 07:21:50 Phase complete: POST_BUILD State: SUCCEEDED
[Container] 2021/03/21 07:21:50 Phase context status code: Message:
[Container] 2021/03/21 07:21:50 Expanding base directory path: .
[Container] 2021/03/21 07:21:50 Assembling file list
[Container] 2021/03/21 07:21:50 Expanding .
[Container] 2021/03/21 07:21:50 Expanding file paths for base directory .
[Container] 2021/03/21 07:21:50 Assembling file list
[Container] 2021/03/21 07:21:50 Expanding imagedefinitions.json
[Container] 2021/03/21 07:21:50 Found 1 file(s)
[Container] 2021/03/21 07:21:50 Phase complete: UPLOAD_ARTIFACTS State: SUCCEEDED
[Container] 2021/03/21 07:21:50 Phase context status code: Message

Edited by: papapumpnz on Mar 21, 2021 12:38 AM

asked 3 years ago302 views
1 Answer
0

Resolution if anyone else is facing this problem.

Check CloudWatch Event rules haven't been created to monitor your ECR repo for a latest build. What was happening was the pipeline created a build, then the CloudWatch event noticed a new image, then started a new pipeline build event again, for infinity. Nice little loop.

So check CloudWatch > Events > Rules and see if you have a "CodePipeLine" type rule setup to monitor changes to your ECR repo. Disable and retest. This fixed my issue.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions