Skip to content
Snippets Groups Projects
Commit 7b5300f3 authored by Emanuele Aina's avatar Emanuele Aina
Browse files

Honor DISABLE_CACHE in packaging-data-fetch-sources-upstream


Signed-off-by: Emanuele Aina's avatarEmanuele Aina <emanuele.aina@collabora.com>
parent 34f430f4
No related branches found
No related tags found
1 merge request!155A couple of DISABLE_CACHE tweaks
Pipeline #591419 passed
......@@ -167,12 +167,12 @@ packaging-data-fetch-sources-upstream:
- CACHE_ARGS=""
- ARTIFACT_URL=${ARTIFACT_URL:-$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_DEFAULT_BRANCH/raw/packaging-cache.yaml?job=pages}
- |
if [ "$ARTIFACT_URL" != none ] && [ "$FILTER_ON_CACHE" == "yes" ]
if [ "$ARTIFACT_URL" != none ] && [ "$DISABLE_CACHE" == "no" ] && [ "$FILTER_ON_CACHE" == "yes" ]
then
wget --header "JOB-TOKEN: $CI_JOB_TOKEN" "$ARTIFACT_URL" -O cache.yaml
fi
- |
if [ -e cache.yaml ] && [ "$FILTER_ON_CACHE" == "yes" ]
if [ -e cache.yaml ] && [ "$DISABLE_CACHE" == "no" ] && [ "$FILTER_ON_CACHE" == "yes" ]
then
echo Load cacheable data from cache.yaml
CACHE_ARGS="--cache cache.yaml"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment