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

fix(ci): avoid clean_pipeline errors when no clean needed

parent be6bf172
No related branches found
No related tags found
1 merge request!993fix(ci): avoid clean_pipeline errors when no clean needed
Pipeline #101603 failed
Pipeline: reconstruction_benchmarks

#101617

    Pipeline: reconstruction_benchmarks

    #101616

      Pipeline: physics_benchmarks

      #101615

        +3
        ......@@ -694,7 +694,9 @@ clean_pipeline:
        --filter=reference=${registry}/*:pipeline-*
        --format "{{.ID}} {{.Repository}} {{.Tag}} {{.CreatedSince}}" ;
        done
        - for registry in
        - # prevent grep exit code 1 when no match
        mygrep() { grep "$@" || test $? = 1; } ;
        for registry in
        eicweb
        eicweb.phy.anl.gov:4567/containers/eic_container
        ; do
        ......@@ -702,8 +704,8 @@ clean_pipeline:
        --filter=reference=${registry}/*:pipeline-*
        --format "{{.ID}} {{.Repository}} {{.Tag}} {{.CreatedSince}}" ;
        done
        | grep -v ${CI_PIPELINE_ID}
        | grep -v "hours ago"
        | mygrep -v ${CI_PIPELINE_ID}
        | mygrep -v "hours ago"
        | sed -n -E 's/pipeline-([0-9]+)(-.*){0,1}\s+.*$/\1 &/p'
        | while read id repository pipeline_id tag N durations ago ; do
        echo "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/pipelines/${pipeline_id}" ;
        ......
        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