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

preguntada hace 3 años307 visualizaciones
1 Respuesta
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 hace 3 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas