Skip to content

Commit

Permalink
ci/cache: Ensure failure on cache non-fetch (envoyproxy#29164)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <[email protected]>
  • Loading branch information
phlax committed Aug 21, 2023
1 parent 0d7ccc8 commit cd6ec23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .azure-pipelines/pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ variables:
- name: cacheKeyName
value: envoy
- name: cacheKeyVersion
value: v0
value: v1
- name: cacheKeyBazel
value: '.bazelversion | ./WORKSPACE | **/*.bzl, !mobile/**, !envoy-docs/**'
- name: cacheKeyDocker
Expand Down
5 changes: 4 additions & 1 deletion ci/do_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,12 @@ case $CI_TARGET in
"${FETCH_TARGETS[@]}" \
&& break
n=$((n+1))
if [[ "$n" -ne 10 ]]; then
if [[ "$n" -lt 10 ]]; then
sleep 15
echo "Retrying fetch ..."
else
echo "Fetch failed"
exit 1
fi
done
;;
Expand Down

0 comments on commit cd6ec23

Please sign in to comment.