Add simple run-test-command job

Add a simple run-test-command that can be used to run a simple
command or shell-script.

Change-Id: I00bade475b5b224768acde3ef232ca0704d3600e
Needed-By: https://review.openstack.org/548080
Needed-By: https://review.openstack.org/545712
This commit is contained in:
Andreas Jaeger 2018-02-26 20:07:23 +01:00
parent ace4db4b04
commit 4342f983d1
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

@ -457,3 +457,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"