[gnome-build-meta/cherry-pick-c1de8acc-2] .gitlab-ci: only download project.refs if we have a track job
- From: Abderrahim Kitouni <akitouni src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-build-meta/cherry-pick-c1de8acc-2] .gitlab-ci: only download project.refs if we have a track job
- Date: Wed, 24 Feb 2021 15:10:25 +0000 (UTC)
commit e0f3fefaf25153f3bfcc5e0396931612781be71e
Author: Abderrahim Kitouni <akitouni gnome org>
Date: Fri Aug 14 04:26:54 2020 +0000
.gitlab-ci: only download project.refs if we have a track job
(cherry picked from commit c1de8acc59dffdb523889e4aef45e9adbed560b5)
.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 b1dfee51..b597315c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -152,7 +152,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 a35e5ef8..0b61347e 100644
--- a/.gitlab-ci/flat-manager.yml
+++ b/.gitlab-ci/flat-manager.yml
@@ -51,7 +51,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]