Skip to content
Snippets Groups Projects
Commit 50ba660f authored by Vignesh Raman's avatar Vignesh Raman
Browse files

Revert "Fetch cached data from GitLab itself"

This reverts commit 590380d4.
parent f53bda91
No related branches found
No related tags found
No related merge requests found
Pipeline #396288 failed
......@@ -24,7 +24,7 @@ variables:
packaging-data-fetch-obs job. Disable it for now.
See https://phabricator.apertis.org/T8880
value: "no"
DASHBOARD_DATA: https://infrastructure.pages.apertis.org/dashboard/packaging.yaml
stages:
- lint
......@@ -93,17 +93,15 @@ packaging-data-fetch-downstream:
wget
script:
- CACHE_ARGS=""
- ARTIFACT_URL=${ARTIFACT_URL:-$CI_API_V4_URL/projects/$CI_PROJECT_ID/jobs/artifacts/$CI_DEFAULT_BRANCH/raw/public/packaging.yaml?job=pages}
- |
if [ "$ARTIFACT_URL" != none ]
if [ -n "$DASHBOARD_DATA" ]
then
wget --header "JOB-TOKEN: $CI_JOB_TOKEN" "$ARTIFACT_URL" -O cache.yaml
wget "$DASHBOARD_DATA" -O packaging.yaml || true
fi
- |
if [ -e cache.yaml ]
if [ -f packaging.yaml ]
then
echo Load cacheable data from cache.yaml
CACHE_ARGS="--cache cache.yaml"
CACHE_ARGS="--cache packaging.yaml"
fi
- ./bin/packaging-data-fetch-downstream
--gitlab-api-token "${DASHBOARD_GITLAB_API_TOKEN}"
......
......@@ -42,7 +42,6 @@ if __name__ == "__main__":
print("set -eux")
print(f"FILTER=pkg/{args.filter_packages or '*'}")
print("ARTIFACT_URL=none")
print("TRIGGER_UPDATES=")
print("TRIGGER_FROM_JOB=")
print("SKIP_OBS=")
......@@ -51,7 +50,6 @@ if __name__ == "__main__":
print("CI_SERVER_URL=")
print("CI_PROJECT_URL=")
print("CI_JOB_URL=")
print("CI_JOB_TOKEN=")
print("CI_PIPELINE_URL=")
print("CI_COMMIT_REF_NAME=wip/test")
if args.loglevel == logging.DEBUG:
......
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