]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: make the pkgbuild jobs re-use the archive (job)
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 1 Jul 2021 17:56:45 +0000 (19:56 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 1 Jul 2021 17:57:47 +0000 (19:57 +0200)
The child pipelines behave a bit differently than expected,
in this respect.

.gitlab-ci.yml
ci/pkgtest.yaml

index 69aff25d71d08fbc5a1c35050c55c973d262bdb2..a743f2bccb6d23ff87f733eab5f0b8e26225b26b 100644 (file)
@@ -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
index a514453ae1ceb9484647500ab4f5dae5e2edb130..50ac1887a1c4427f3d86991c62bba37425b19102 100644 (file)
@@ -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'