Skip to content
Snippets Groups Projects
Commit bdcae407 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

feat: add more debugging output to clean_pipeline

parent d593d5bb
No related branches found
No related tags found
1 merge request!877feat: add more debugging output to clean_pipeline
...@@ -678,6 +678,7 @@ clean_pipeline: ...@@ -678,6 +678,7 @@ clean_pipeline:
when: always when: always
script: script:
- apk add curl jq - apk add curl jq
- docker images --filter=reference=${registry}/*:pipeline-* --format "{{.ID}} {{.Repository}} {{.Tag}}"
- for registry in - for registry in
eicweb eicweb
eicweb.phy.anl.gov:4567/containers/eic_container eicweb.phy.anl.gov:4567/containers/eic_container
...@@ -689,6 +690,8 @@ clean_pipeline: ...@@ -689,6 +690,8 @@ clean_pipeline:
| grep -v ${CI_PIPELINE_ID} | grep -v ${CI_PIPELINE_ID}
| sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}$/& \1/p' | sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}$/& \1/p'
| while read id repository tag pipeline_id ; do | 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 status=$(curl --silent -L
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}"
| jq -r ".status") ; | jq -r ".status") ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment