diff --git a/build/stf-run-ci/tasks/setup_stf_from_bundles.yml b/build/stf-run-ci/tasks/setup_stf_from_bundles.yml index 3cff68230..d17a8e228 100644 --- a/build/stf-run-ci/tasks/setup_stf_from_bundles.yml +++ b/build/stf-run-ci/tasks/setup_stf_from_bundles.yml @@ -89,6 +89,13 @@ - debug: msg: "STO bundle path: {{ __service_telemetry_bundle_image_path}}" +- name: "Fail if bundle paths are unset." + fail: + msg: "Bundle path(s) not set. __smart_gateway_bundle_image_path is '{{ __smart_gateway_bundle_image_path }}' and __service_telemetry_bundle_image_path is '{{ __service_telemetry_bundle_image_path }}'. Both values need to be set." + when: + - __smart_gateway_bundle_image_path | length == 0 + - __service_telemetry_bundle_image_path == 0 + - name: Deploy SGO via OLM bundle shell: cmd: "{{ base_dir }}/working/operator-sdk-v1.5.0 run bundle {{__smart_gateway_bundle_image_path}} {% if pull_secret is defined %}--pull-secret-name=pull-secret --ca-secret-name=registry-tls-ca{% endif %} --namespace={{ namespace }} --timeout 600s"