pipeline ends before last command is finished

Thomas Einwaller May 4, 2023

we use fluxcd for deployments and we added 

flux reconcile ks <name> --with-source

as the last command in our pipeline script

but it seems like the pipeline does not wait until the command finishes and tears down the pipeline 

it prints

+ flux reconcile ks marketing --with-source
► annotating GitRepository flux-system in flux-system namespace
✔ GitRepository annotated
◎ waiting for GitRepository reconciliation
✔ fetched revision main@sha1:c5833320f6147b1942b45e1b02cae2b28e82b1d8
► annotating Kustomization marketing in flux-system namespace
✔ Kustomization annotated
◎ waiting for Kustomization reconciliation

and then teardown

normally the flux reconcile command should return successful or timeout after 5 minutes

how is that possible?

1 answer

0 votes
Erez Maadani
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 4, 2023

Hi @Thomas Einwaller 

I recommend downloading the image and running the step's commands interactively within the container. This way you can debug the process locally. 

Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events