mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-14 17:58:27 +00:00
ATS-628: Update build config on support branches
This commit is contained in:
24
_ci/cache_artifacts.sh
Normal file
24
_ci/cache_artifacts.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
echo "=========================== Starting Cache Artifacts Script ==========================="
|
||||
PS4="\[\e[35m\]+ \[\e[m\]"
|
||||
set -vex
|
||||
pushd "$(dirname "${BASH_SOURCE[0]}")/../"
|
||||
|
||||
LIBREOFFICE_VERSION=5.4.6
|
||||
|
||||
# Cache the LibreOffice distribution, as it is takes a long time to download and it can cause the
|
||||
# build to fail (no output for more than 10 minutes)
|
||||
LIBREOFFICE_RPM_URL="https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/libreoffice/libreoffice-dist/${LIBREOFFICE_VERSION}/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz"
|
||||
if [ -f "${HOME}/artifacts/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz" ]; then
|
||||
echo "Using cached LibreOffice distribution..."
|
||||
else
|
||||
echo "Downloading LibreOffice distribution..."
|
||||
curl -s -S ${LIBREOFFICE_RPM_URL} -o "${HOME}/artifacts/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz"
|
||||
fi
|
||||
cp "${HOME}/artifacts/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz" alfresco-docker-libreoffice/
|
||||
|
||||
|
||||
popd
|
||||
set +vex
|
||||
echo "=========================== Finishing Cache Artifacts Script =========================="
|
Reference in New Issue
Block a user