.gitlab-ci.yml: Include the actual command used by gitlab
authorTim Beale <timbeale@catalyst.net.nz>
Wed, 13 Feb 2019 22:20:16 +0000 (11:20 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 14 Feb 2019 01:18:30 +0000 (02:18 +0100)
Someone who finds gitlab mysterious will have no idea what $CI_JOB_NAME
should be, if they wanted to reproduce the autobuild job manually. It
should be trivial to include the actual command being run in the logs.

Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
.gitlab-ci.yml

index 37ca054..b39f786 100644 (file)
@@ -40,6 +40,9 @@ variables:
       - runner_system_failure
       - stuck_or_timeout_failure
   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
 
 others: