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

fix: limit --no-cache retries to 1

parent 61e324ec
No related branches found
No related tags found
1 merge request!983fix: limit --no-cache retries to 1
Pipeline #101262 failed
Pipeline: reconstruction_benchmarks

#101265

    Pipeline: physics_benchmarks

    #101264

      Pipeline: detector_benchmarks

      #101263

        ...@@ -269,6 +269,7 @@ base: ...@@ -269,6 +269,7 @@ base:
        needs: needs:
        - version - version
        script: script:
        - attempts=0
        - while ! - while !
        docker buildx build --push ${BUILD_OPTIONS} docker buildx build --push ${BUILD_OPTIONS}
        --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG} --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}:${INTERNAL_TAG}
        ...@@ -289,7 +290,12 @@ base: ...@@ -289,7 +290,12 @@ base:
        BUILD_OPTIONS="--no-cache ${BUILD_OPTIONS}" ; BUILD_OPTIONS="--no-cache ${BUILD_OPTIONS}" ;
        else else
        exit 1 ; exit 1 ;
        fi fi ;
        if test ${attempts} -ge 1 ; then
        echo "Failed to build on second attempt!" ;
        exit 1 ;
        fi ;
        let attempts=$attempts+1 ;
        done done
        ...@@ -353,6 +359,7 @@ eic: ...@@ -353,6 +359,7 @@ eic:
        source eic-spack.sh ; source eic-spack.sh ;
        export SPACK_VERSION ; export SPACK_VERSION ;
        cat mirrors.yaml.in | envsubst > mirrors.yaml cat mirrors.yaml.in | envsubst > mirrors.yaml
        - attempts=0
        - while ! - while !
        docker buildx build --push ${BUILD_OPTIONS} docker buildx build --push ${BUILD_OPTIONS}
        --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}${ENV}:${INTERNAL_TAG}-${BUILD_TYPE} --tag ${CI_REGISTRY}/${CI_PROJECT_PATH}/${BUILD_IMAGE}${ENV}:${INTERNAL_TAG}-${BUILD_TYPE}
        ...@@ -441,10 +448,15 @@ eic: ...@@ -441,10 +448,15 @@ eic:
        2>&1 | tee build.log 2>&1 | tee build.log
        ; do ; do
        if grep "unknown blob" build.log ; then if grep "unknown blob" build.log ; then
        BUILD_OPTIONS="--no-cache ${BUILD_OPTIONS}" ; BUILD_OPTIONS="--no-cache-filter spack,builder,staging,runtime ${BUILD_OPTIONS}" ;
        else else
        exit 1 ; exit 1 ;
        fi fi ;
        if test ${attempts} -ge 1 ; then
        echo "Failed to build on second attempt!" ;
        exit 1 ;
        fi ;
        let attempts=$attempts+1 ;
        done done
        .singularity: .singularity:
        ......
        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