[gnome-build-meta/abderrahim/fix-flatpak-stable] .gitlab-ci: only download project.refs if we have a track job




commit c1de8acc59dffdb523889e4aef45e9adbed560b5
Author: Abderrahim Kitouni <akitouni gnome org>
Date:   Fri Aug 14 05:26:54 2020 +0100

    .gitlab-ci: only download project.refs if we have a track job

 .gitlab-ci.yml              | 2 +-
 .gitlab-ci/flat-manager.yml | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index dcb03ddf..a6d7f9c3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -174,7 +174,7 @@ generate-deploy-config:
   dependencies: [track]
   stage: deploy-config
   script:
-  - TRACK_JOB_ID=$(cat track-job.id)
+  - test -f track-job.id && TRACK_JOB_ID=$(cat track-job.id)
   - |
     case "$FLATPAK_BRANCH" in
       master)
diff --git a/.gitlab-ci/flat-manager.yml b/.gitlab-ci/flat-manager.yml
index db98b809..d8ae8c77 100644
--- a/.gitlab-ci/flat-manager.yml
+++ b/.gitlab-ci/flat-manager.yml
@@ -63,7 +63,7 @@ flatmgr-prepare:
   extends: .x86_64
   stage: prepare
   script:
-  - curl -O $CI_PROJECT_URL/-/jobs/$TRACK_JOB_ID/artifacts/raw/project.refs
+  - test -n "$TRACK_JOB_ID" && curl -O $CI_PROJECT_URL/-/jobs/$TRACK_JOB_ID/artifacts/raw/project.refs
   - flat-manager-client create $FLAT_MANAGER_SERVER $FLAT_MANAGER_REPO > build.txt
   artifacts:
     paths:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]