From 01d70c60ff70c214b55b2e64d89acc3746fd6ab3 Mon Sep 17 00:00:00 2001 From: Victor M Date: Thu, 7 Oct 2021 18:07:45 +0200 Subject: [PATCH] Add variable to select IQE image on CJI script (#126) --- cicd/cji_smoke_test.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cicd/cji_smoke_test.sh b/cicd/cji_smoke_test.sh index 66f75592..6ca47f7e 100644 --- a/cicd/cji_smoke_test.sh +++ b/cicd/cji_smoke_test.sh @@ -12,6 +12,7 @@ # https://unix.stackexchange.com/questions/122845/using-a-b-for-variable-assignment-in-scripts/122848#122848 : "${IQE_MARKER_EXPRESSION:='""'}" : "${IQE_FILTER_EXPRESSION:='""'}" +: "${IQE_IMAGE_TAG:='""'}" CJI_NAME="$COMPONENT_NAME-smoke-tests" @@ -21,7 +22,7 @@ if [[ -z $IQE_CJI_TIMEOUT ]]; then fi # Invoke the CJI using the options set via env vars -pod=$(bonfire deploy-iqe-cji $COMPONENT_NAME -m "$IQE_MARKER_EXPRESSION" -k "$IQE_FILTER_EXPRESSION" -e "clowder_smoke" --cji-name $CJI_NAME -n $NAMESPACE) +pod=$(bonfire deploy-iqe-cji $COMPONENT_NAME -m "$IQE_MARKER_EXPRESSION" -k "$IQE_FILTER_EXPRESSION" -e "clowder_smoke" --cji-name $CJI_NAME -n $NAMESPACE --image-tag "${IQE_IMAGE_TAG}") # Pipe logs to background to keep them rolling in jenkins oc logs -n $NAMESPACE $pod -f &