summaryrefslogtreecommitdiff
path: root/.gitlab-ci-main.yml
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2021-10-15 08:22:17 +1300
committerStefan Metzmacher <metze@samba.org>2021-10-25 12:13:16 +0000
commit9a25efd54aa779f59f1f0e95d62a2f9b676f9558 (patch)
tree725c921938dc0aa904ee38a8821aebe7754b2097 /.gitlab-ci-main.yml
parent64f81e2e58911587c2180a53225e5d918d997f49 (diff)
downloadsamba-9a25efd54aa779f59f1f0e95d62a2f9b676f9558.tar.gz
gitlab-ci: Do not download artifacts of unrelated builds
This needs: is overridden in many cases, but ensures none of the other main jobs start until this build finishes. However this also ensures we do not download artifacts from any build unless we specifically depend on it, saving bandwidth BUG: https://bugzilla.samba.org/show_bug.cgi?id=14863 Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> (cherry picked from commit ce3d33f4c141afdfa3fbe9fe26835dc32ef95fe0)
Diffstat (limited to '.gitlab-ci-main.yml')
-rw-r--r--.gitlab-ci-main.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/.gitlab-ci-main.yml b/.gitlab-ci-main.yml
index 37cff6e8f85..0cbcc17c94c 100644
--- a/.gitlab-ci-main.yml
+++ b/.gitlab-ci-main.yml
@@ -97,6 +97,16 @@ include:
key: ccache.${CI_JOB_NAME}.${SAMBA_CI_JOB_IMAGE}.${SAMBA_CI_FLAVOR}
paths:
- ccache
+
+ # This is overridden in many cases, but ensures none of the other
+ # main jobs start until and unless this build finishes. However
+ # this also ensures we do not download artifacts from any build
+ # unless we specifically depend on it, saving bandwidth
+
+ needs:
+ - job: samba-def-build
+ artifacts: false
+
before_script:
- uname -a
- lsb_release -a
@@ -176,6 +186,7 @@ others:
.shared_template_build_only:
extends: .shared_template
timeout: 2h
+ needs:
artifacts:
expire_in: 1 week
paths: