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:
parent
ace4db4b04
commit
4342f983d1
7
playbooks/run-test-command/run.yaml
Normal file
7
playbooks/run-test-command/run.yaml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
- hosts: all
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Run test_command
|
||||||
|
command: '{{ test_command }}'
|
||||||
|
args:
|
||||||
|
chdir: '{{ zuul.project.src_dir }}'
|
11
zuul.yaml
11
zuul.yaml
@ -457,3 +457,14 @@
|
|||||||
success-url: html/
|
success-url: html/
|
||||||
vars:
|
vars:
|
||||||
npm_command: docs
|
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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user