diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a0e093aa71af9d6fd8faba56979c2bacfd1a5709..9051ff2583b4b29ef40d0dcbb0fbbb21b648888a 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") ;