summaryrefslogtreecommitdiffstats
path: root/ci/build.sh
diff options
context:
space:
mode:
authorTim Rozet <trozet@redhat.com>2015-11-04 19:13:49 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-11-04 19:13:49 +0000
commit9adcc8960d835607317810b1d060beaca0f6cec5 (patch)
treeefba81fb51729261122618197a144c57b5000c43 /ci/build.sh
parentf4aab45fea78816f882ff6d44f110e6de3878b87 (diff)
parente01b53406a2fbda97e1f58ed18fb535e4a4de2d5 (diff)
Merge "adding --atime-preseve to try and fix caching"
Diffstat (limited to 'ci/build.sh')
-rwxr-xr-xci/build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci/build.sh b/ci/build.sh
index fd5bffeb..c052ab0b 100755
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -309,7 +309,7 @@ if [ ! -z ${BUILD_CACHE_URI} ]; then
POPULATE_CACHE=1
else
echo "Unpacking cache file ..."
- tar -C ${CACHE_TMP}/cache -xvf ${CACHE_TMP}/cache/${LOCAL_CACHE_ARCH_NAME}.tgz
+ tar --atime-preserve -C ${CACHE_TMP}/cache -xvf ${CACHE_TMP}/cache/${LOCAL_CACHE_ARCH_NAME}.tgz
cp ${CACHE_TMP}/cache/cache/.versions ${BUILD_BASE}/.
set +e
make -C ${BUILD_BASE} validate-cache;
@@ -398,7 +398,7 @@ cp ${BUILD_BASE}/noarch/*.rpm ${BUILD_DIR}
if [ $POPULATE_CACHE -eq 1 ]; then
if [ ! -z ${BUILD_CACHE_URI} ]; then
echo "Building cache ..."
- tar --dereference -C ${BUILD_BASE} -caf ${BUILD_BASE}/${LOCAL_CACHE_ARCH_NAME}.tgz ${CACHE_DIR}
+ tar --atime-preserve --dereference -C ${BUILD_BASE} -caf ${BUILD_BASE}/${LOCAL_CACHE_ARCH_NAME}.tgz ${CACHE_DIR}
echo "Uploading cache ${BUILD_CACHE_URI}/${REMOTE_CACHE_ARCH_NAME}"
${REMOTE_ACCESS_METHD} -T ${BUILD_BASE}/${LOCAL_CACHE_ARCH_NAME}.tgz ${BUILD_CACHE_URI}/${REMOTE_CACHE_ARCH_NAME}.tgz
rm ${BUILD_BASE}/${LOCAL_CACHE_ARCH_NAME}.tgz