From 62f61d34c2715785f4f7196ae9d0a744d55f471d Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 20 May 2020 13:07:26 -0500 Subject: [PATCH] CI: Skip AWS test if bucket missing The osbuild CI uses the osbuild-composer CI testing playbooks but there's no need to run the EC2 import for osbuild's CI. Add a check in the Ansible playbook to look for the AWS_BUCKET environment variable and skip the EC2 import if the bucker variable is missing. Signed-off-by: Major Hayden --- schutzbot/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schutzbot/test.yml b/schutzbot/test.yml index 9322d8ee0..783414e47 100644 --- a/schutzbot/test.yml +++ b/schutzbot/test.yml @@ -36,6 +36,8 @@ loop_var: test_case 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 - name: Show failed and passed tests debug: