summaryrefslogtreecommitdiff
path: root/.gitlab-ci-private.yml
diff options
context:
space:
mode:
authorJoe Guo <joeg@catalyst.net.nz>2019-02-15 22:25:07 +1300
committerAndrew Bartlett <abartlet@samba.org>2019-02-18 10:54:19 +0100
commit6b4ae52f224ea6700527cd034353fe561cda0485 (patch)
treeada54b86ad0d00d515657bd6dcb6c52971905d35 /.gitlab-ci-private.yml
parent9fa698b02358807c20444a6bc5a9ab8f311c4922 (diff)
downloadsamba-6b4ae52f224ea6700527cd034353fe561cda0485.tar.gz
.gitlab-ci.yml: merge .gitlab-ci-private.yml
`.gitlab-ci.yml` support conditional jobs with `only` and `except`. And variables can be read from repo CI/CD settings as condition: build_samba: script: ... only: variables: - $SUPPORT_PRIVATE_TEST == 'yes' Instead of having 2 copies of yml file, we can use this feature to trigger private jobs only when a var like `SUPPORT_PRIVATE_TEST` is defined. I've already added above var to our repos. Once merged, we can remove custom CI config file in gitlab repo settings, and remove .gitlab-ci-private.yml file from code. Signed-off-by: Joe Guo <joeg@catalyst.net.nz> Reviewed-by: Tim Beale <timbeale@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Mon Feb 18 10:54:19 CET 2019 on sn-devel-144
Diffstat (limited to '.gitlab-ci-private.yml')
-rw-r--r--.gitlab-ci-private.yml30
1 files changed, 1 insertions, 29 deletions
diff --git a/.gitlab-ci-private.yml b/.gitlab-ci-private.yml
index 4e83c197b89..04d33d5c549 100644
--- a/.gitlab-ci-private.yml
+++ b/.gitlab-ci-private.yml
@@ -1,30 +1,2 @@
include:
- - '/.gitlab-ci.yml'
-
-
-.private_template:
- extends: .shared_template
- tags:
- - docker
- - private
- before_script:
- - uname -a
- - lsb_release -a
- - mount
- - df -h
- - free -h
-
-samba:
- extends: .private_template
- # this one takes about 4 hours to finish
-
-samba-fileserver:
- extends: .private_template
- # this one takes about 1 hours to finish
-
-samba-ad-dc:
- extends: .private_template
- # this one takes about 1 hours to finish
-
-samba-nt4:
- extends: .private_template
+ - '/.gitlab-ci.yml'