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
This commit is contained in:
@@ -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"
|
||||
"$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"
|
||||
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"
|
||||
-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"
|
||||
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
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user