summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2019-04-12 21:21:03 +0200
committerStefan Metzmacher <metze@samba.org>2019-04-18 12:09:34 +0000
commitad2c23eeb38603631d1d9789d1a53a93e7caec03 (patch)
tree5275e61cba66ef2e644f95066bfb7f7412fd3a63 /.gitlab-ci.yml
parent82e0986bf0d4f9b78be2782ecbfc4e84c7036745 (diff)
downloadsamba-ad2c23eeb38603631d1d9789d1a53a93e7caec03.tar.gz
.gitlab-ci.yml: split AUTOBUILD_JOB_NAME from CI_JOB_NAME
This will make it easier extend the templates later. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 58dc7ca2e12..b32181529da 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -32,6 +32,8 @@ include:
- 'bootstrap/.gitlab-ci.yml'
.shared_template:
+ variables:
+ AUTOBUILD_JOB_NAME: $CI_JOB_NAME
image: $SAMBA_CI_CONTAINER_IMAGE
stage: build
tags:
@@ -74,8 +76,8 @@ include:
script:
# gitlab predefines CI_JOB_NAME for each job. The gitlab job usually matches the
# autobuild name, which means we can define a default template that runs most autobuild jobs
- - echo "Running cmd script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
- - script/autobuild.py $CI_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
+ - echo "Running cmd script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase"
+ - script/autobuild.py $AUTOBUILD_JOB_NAME --verbose --nocleanup --keeplogs --tail --testbase /tmp/samba-testbase
others:
extends: .shared_template