Merge "explicit error when test_command is undef"

This commit is contained in:
Zuul 2020-09-23 17:49:39 +00:00 committed by Gerrit Code Review
commit c8d0c1a017
2 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,11 @@
- hosts: all
tasks:
- name: Abort when test_command variable is undefined
fail:
msg: mandatory test_command variable is undefined
when: test_command is undefined
- name: Convert test_command to list
set_fact:
test_commands: ['{{ test_command }}']

View File

@ -40,8 +40,6 @@
Path to operate in.
run: playbooks/run-test-command/run.yaml
vars:
test_command: "exit 1"
- job:
name: upload-git-mirror