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

gefragt vor 3 Jahren308 Aufrufe
1 Antwort
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.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen