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

fix: jq syntax

parent 48b419a0
No related branches found
No related tags found
No related merge requests found
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.
Finish editing this message first!
Please register or to comment