Fix the AWS_BUCKET check
Ensure that AWS tests are run if the AWS_BUCKET environment variable is set. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
4842d144aa
commit
70fa9e4696
2 changed files with 2 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ ansible-playbook \
|
|||
ansible-osbuild/playbook.yml
|
||||
|
||||
# Run the tests.
|
||||
echo "The AWS_BUCKET env var is set to: ${AWS_BUCKET:-}"
|
||||
ansible-playbook \
|
||||
-e workspace=${WORKSPACE} \
|
||||
-e test_type=${TEST_TYPE:-base} \
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@
|
|||
when:
|
||||
- test_type == 'image'
|
||||
# Don't run the AWS test if the bucket env var is not set.
|
||||
- (lookup('env', 'AWS_BUCKET') | default(false)) | bool
|
||||
- lookup('env', 'AWS_BUCKET') | length > 0
|
||||
|
||||
- name: Show failed and passed tests
|
||||
debug:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue