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

demandé il y a 3 ans308 vues
1 réponse
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.

répondu il y a 3 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions