Skip to content

Commit

Permalink
Add variable to select IQE image on CJI script (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Victoremepunto authored Oct 7, 2021
1 parent 8d72006 commit 01d70c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cicd/cji_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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 &
Expand Down

0 comments on commit 01d70c6

Please sign in to comment.