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

feita há 3 anos307 visualizações
1 Resposta
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.

respondido há 3 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas