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

fix: jq syntax

parent 7cfdcecd
No related branches found
No related tags found
1 merge request!712feat: clean old pipeline tags
This commit is part of merge request !712. Comments created here will be created in the context of that merge request.
......@@ -568,7 +568,7 @@ clean_pipeline:
| while read id repository tag pipeline_id ; do
status=$(curl --silent -L
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}"
| jq -r ".[]|.status") ;
| jq -r ".status") ;
echo "Image $repository:$tag is ${status:-undetermined} (pipeline ${pipeline_id})." ;
[ "$status" == "success" ] && echo docker rmi $repository:$tag ;
[ "$status" == "failed" ] && echo docker rmi $repository:$tag ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment