Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
containers
eic_container
Commits
e373d70b
Commit
e373d70b
authored
6 months ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
fix: limit --no-cache retries to 1
parent
61e324ec
No related branches found
No related tags found
1 merge request
!983
fix: limit --no-cache retries to 1
Pipeline
#101262
failed
6 months ago
Stage: status-pending
Stage: config
Stage: base
Stage: eic
Stage: deploy
Stage: benchmarks
Stage: finalize
Stage: status-report
Pipeline: reconstruction_benchmarks
#101265
Pipeline: physics_benchmarks
#101264
Pipeline: detector_benchmarks
#101263
Changes
1
Pipelines
12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+15
-3
15 additions, 3 deletions
.gitlab-ci.yml
with
15 additions
and
3 deletions
.gitlab-ci.yml
+
15
−
3
View file @
e373d70b
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment