Merge "Add simple run-test-command job"

This commit is contained in:
Zuul 2018-05-09 17:54:06 +00:00 committed by Gerrit Code Review
commit 0a673aa13b
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,7 @@
- hosts: all
tasks:
- name: Run test_command
command: '{{ test_command }}'
args:
chdir: '{{ zuul.project.src_dir }}'

View File

@ -472,3 +472,14 @@
success-url: html/
vars:
npm_command: docs
- job:
name: run-test-command
parent: unittests
description: |
Run simple command as test.
To use this, set the ``test_command`` variable.
run: playbooks/run-test-command/run.yaml
vars:
test_command: "exit 1"