From bdcae4075e0e0ce86f8ad36a2bc32d89af92e1b4 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Mon, 22 Apr 2024 16:25:35 +0000 Subject: [PATCH] feat: add more debugging output to clean_pipeline --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0e093aa7..9051ff258 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -678,6 +678,7 @@ clean_pipeline: when: always script: - apk add curl jq + - docker images --filter=reference=${registry}/*:pipeline-* --format "{{.ID}} {{.Repository}} {{.Tag}}" - for registry in eicweb eicweb.phy.anl.gov:4567/containers/eic_container @@ -689,6 +690,8 @@ clean_pipeline: | grep -v ${CI_PIPELINE_ID} | sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}$/& \1/p' | while read id repository tag pipeline_id ; do + echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" ; + curl --silent -L "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" | jq . ; status=$(curl --silent -L "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" | jq -r ".status") ; -- GitLab