From 968e7b210fd90b88343b67c789bc550a271cd4c8 Mon Sep 17 00:00:00 2001 From: Alexander Todorov Date: Thu, 10 Jun 2021 11:51:08 +0300 Subject: [PATCH] CI: Store .repo file as artifacts. Fixes #1458 Note: only store them for the Base jobs b/c these files are produced by deploy.sh and will be the same across jobs in the same pipeline. --- .gitlab-ci.yml | 5 +++++ schutzbot/deploy.sh | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a87909e27..aee608c30 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -89,6 +89,11 @@ Base: # see COMPOSER-918 # - aws/rhel-8.4-aarch64 INTERNAL_NETWORK: ["true"] + artifacts: + paths: + - journal-log + - "*.repo" + when: always OSTree: stage: test diff --git a/schutzbot/deploy.sh b/schutzbot/deploy.sh index 47b74fee1..d60175540 100755 --- a/schutzbot/deploy.sh +++ b/schutzbot/deploy.sh @@ -106,3 +106,9 @@ fi greenprint "Installing test packages for ${PROJECT}" # Note: installing only -tests to catch missing dependencies retry sudo dnf -y install "${PROJECT}-tests" + +if [ -n "${CI}" ]; then + # copy repo files b/c GitLab can't upload artifacts + # which are outside the build directory + cp /etc/yum.repos.d/*.repo "$(pwd)" +fi