From: Vladimír Čunát Date: Thu, 1 Jul 2021 17:56:45 +0000 (+0200) Subject: ci: make the pkgbuild jobs re-use the archive (job) X-Git-Tag: v5.4.0~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=69159b71670c5ba46053bde50c4bcb042f0b3440;p=thirdparty%2Fknot-resolver.git ci: make the pkgbuild jobs re-use the archive (job) The child pipelines behave a bit differently than expected, in this respect. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 69aff25d7..a743f2bcc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -312,6 +312,8 @@ pkgtest: strategy: depend needs: - build + variables: # https://gitlab.nic.cz/help/ci/yaml/README.md#artifact-downloads-to-child-pipelines + PARENT_PIPELINE_ID: $CI_PIPELINE_ID except: refs: - master@knot/knot-resolver diff --git a/ci/pkgtest.yaml b/ci/pkgtest.yaml index a514453ae..50ac1887a 100644 --- a/ci/pkgtest.yaml +++ b/ci/pkgtest.yaml @@ -11,6 +11,9 @@ stages: before_script: - git config --global user.name CI - git config --global user.email ci@nic + needs: # https://gitlab.nic.cz/help/ci/yaml/README.md#artifact-downloads-to-child-pipelines + - pipeline: $PARENT_PIPELINE_ID + job: archive artifacts: when: always expire_in: '1 day'