aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-04-24 17:25:31 -0700
committerJunio C Hamano <gitster@pobox.com>2025-04-24 17:25:32 -0700
commitcbe2267d3cad279cdda0aef15119142a60a6b4f1 (patch)
tree59d00bbb124f22d5ae20c9694eb8ec6ba224ac6e
parenta2955b34f48265d240ab8c7deb0a929ec2d65fd0 (diff)
parentb0026daf1e60ebff7f1d4a840c158b3a05ecffcd (diff)
downloadgit-cbe2267d3cad279cdda0aef15119142a60a6b4f1.tar.gz
Merge branch 'jc/ci-skip-unavailable-external-software'
Make sure outage of third-party sites that supply P4, Git-LFS, and JGit we use for testing would not prevent our CI jobs from running at all. * jc/ci-skip-unavailable-external-software: ci: skip unavailable external software
-rwxr-xr-xci/install-dependencies.sh31
1 files changed, 22 insertions, 9 deletions
diff --git a/ci/install-dependencies.sh b/ci/install-dependencies.sh
index be9ba5e30a..da19dada2c 100755
--- a/ci/install-dependencies.sh
+++ b/ci/install-dependencies.sh
@@ -66,16 +66,29 @@ ubuntu-*|i386/ubuntu-*|debian-*)
mkdir --parents "$CUSTOM_PATH"
wget --quiet --directory-prefix="$CUSTOM_PATH" \
- "$P4WHENCE/bin.linux26x86_64/p4d" "$P4WHENCE/bin.linux26x86_64/p4"
- chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4"
-
- wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
+ "$P4WHENCE/bin.linux26x86_64/p4d" \
+ "$P4WHENCE/bin.linux26x86_64/p4" &&
+ chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4" || {
+ rm -f "$CUSTOM_PATH/p4"
+ rm -f "$CUSTOM_PATH/p4d"
+ echo >&2 "P4 download (optional) failed"
+ }
+
+ wget --quiet \
+ "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" &&
tar -xzf "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" \
- -C "$CUSTOM_PATH" --strip-components=1 "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs"
- rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz"
-
- wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit"
- chmod a+x "$CUSTOM_PATH/jgit"
+ -C "$CUSTOM_PATH" --strip-components=1 \
+ "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs" &&
+ rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" || {
+ rm -f "$CUSTOM_PATH/git-lfs"
+ echo >&2 "LFS download (optional) failed"
+ }
+
+ wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit" &&
+ chmod a+x "$CUSTOM_PATH/jgit" || {
+ rm -f "$CUSTOM_PATH/jgit"
+ echo >&2 "JGit download (optional) failed"
+ }
;;
esac
;;