Git fork

Merge branch 'jc/ci-skip-unavailable-external-software' into maint-2.49

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

+20 -7
+20 -7
ci/install-dependencies.sh
··· 66 66 mkdir --parents "$CUSTOM_PATH" 67 67 68 68 wget --quiet --directory-prefix="$CUSTOM_PATH" \ 69 - "$P4WHENCE/bin.linux26x86_64/p4d" "$P4WHENCE/bin.linux26x86_64/p4" 70 - chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4" 69 + "$P4WHENCE/bin.linux26x86_64/p4d" \ 70 + "$P4WHENCE/bin.linux26x86_64/p4" && 71 + chmod a+x "$CUSTOM_PATH/p4d" "$CUSTOM_PATH/p4" || { 72 + rm -f "$CUSTOM_PATH/p4" 73 + rm -f "$CUSTOM_PATH/p4d" 74 + echo >&2 "P4 download (optional) failed" 75 + } 71 76 72 - wget --quiet "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" 77 + wget --quiet \ 78 + "$LFSWHENCE/git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" && 73 79 tar -xzf "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" \ 74 - -C "$CUSTOM_PATH" --strip-components=1 "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs" 75 - rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" 80 + -C "$CUSTOM_PATH" --strip-components=1 \ 81 + "git-lfs-$LINUX_GIT_LFS_VERSION/git-lfs" && 82 + rm "git-lfs-linux-amd64-$LINUX_GIT_LFS_VERSION.tar.gz" || { 83 + rm -f "$CUSTOM_PATH/git-lfs" 84 + echo >&2 "LFS download (optional) failed" 85 + } 76 86 77 - wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit" 78 - chmod a+x "$CUSTOM_PATH/jgit" 87 + wget --quiet "$JGITWHENCE" --output-document="$CUSTOM_PATH/jgit" && 88 + chmod a+x "$CUSTOM_PATH/jgit" || { 89 + rm -f "$CUSTOM_PATH/jgit" 90 + echo >&2 "JGit download (optional) failed" 91 + } 79 92 ;; 80 93 esac 81 94 ;;