.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 37ca0549d81031d325d4544e5c694d8fc48220d7..b39f7864257e779f9e73928f6bec56af11ab8dbb 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: