Skip to content

Commit

Permalink
Ignore image prune operation error (antrea-io#493)
Browse files Browse the repository at this point in the history
The image prune operation cannot be executed in parallel. It could fail
when another build is doing it and terminate the build, ignore the
failure as dangling images will be cleaned up by another build or
following builds anyway.
  • Loading branch information
tnqn committed Mar 11, 2020
1 parent ec1c21a commit 5aeefb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/jenkins/jobs/macros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
docker images | grep 'antrea-ubuntu' | awk '{print $3}' | xargs -r docker rmi || true
# Clean up dangling images generated in previous builds. Recent ones must be excluded
# because they might be being used in other builds running simultaneously.
docker image prune -f --filter "until=1h"
docker image prune -f --filter "until=1h" || true
VERSION="$JOB_NAME-$BUILD_NUMBER" make
sed -i "s|#serviceCIDR: 10.96.0.0/12|serviceCIDR: 100.64.0.0/13|g" build/yamls/antrea.yml
Expand Down

0 comments on commit 5aeefb1

Please sign in to comment.