diff --git a/templates/haf_app_testing.gitlab-ci.yml b/templates/haf_app_testing.gitlab-ci.yml index f7d1fa0ac972f100e36f6d8aad51e8a55bc5f855..d4411c9ea7791bc9dca5da86525c61a0307a4b2e 100644 --- a/templates/haf_app_testing.gitlab-ci.yml +++ b/templates/haf_app_testing.gitlab-ci.yml @@ -972,6 +972,8 @@ include: # Prepare data for caching sudo cp -a "${SHM_DIR}" "${DATADIR}/shm_dir" mkdir -p "${DATADIR}/blockchain" + # Remove any existing symlinks before copying (they may point to read-only locations) + sudo rm -f "${DATADIR}/blockchain/block_log" "${DATADIR}/blockchain/block_log.artifacts" sudo cp -a "${CI_PROJECT_DIR}/docker/blockchain/block_log" "${DATADIR}/blockchain/block_log" sudo cp -a "${CI_PROJECT_DIR}/docker/blockchain/block_log.artifacts" "${DATADIR}/blockchain/block_log.artifacts"