fix: tag images before creating the app to prevent firing the deployment triggers during test.
@@ -42,16 +42,6 @@ echo "Installing Syndesis in ${KUBERNETES_NAMESPACE} from: ${SYNDESIS_TEMPLATE_U
oc project ${KUBERNETES_NAMESPACE}
-oc create -f ${SYNDESIS_TEMPLATE_URL} -n ${KUBERNETES_NAMESPACE} || oc replace -f ${SYNDESIS_TEMPLATE_URL} -n ${KUBERNETES_NAMESPACE}
-
-oc new-app ${SYNDESIS_TEMPLATE_TYPE} \
- -p ROUTE_HOSTNAME=${KUBERNETES_NAMESPACE}.b6ff.rh-idev.openshiftapps.com \
- -p OPENSHIFT_MASTER=${OPENSHIFT_MASTER} \
- -p OPENSHIFT_OAUTH_CLIENT_ID=$(oc project -q) \
- -p DEMO_DATA_ENABLED=${DEMO_DATA_ENABLED} \
- -p TEST_SUPPORT_ENABLED=true \
- -n ${KUBERNETES_NAMESPACE}
-
# If env variable `SYNDESIS_RELEASED_IMAGES` IS provided by template will be used
if [ -n "${SYNDESIS_RELEASED_IMAGES}" ]; then
echo "ImageStreams specified by template will be used"
@@ -61,3 +51,13 @@ else
echo "ImageStreams from CI namespace will be used"
for i in `oc get istag -n syndesis-ci | cut -f1 -d " " | grep -v NAME`;do oc tag syndesis-ci/$i ${KUBERNETES_NAMESPACE}/$i; done
fi
+
+oc create -f ${SYNDESIS_TEMPLATE_URL} -n ${KUBERNETES_NAMESPACE} || oc replace -f ${SYNDESIS_TEMPLATE_URL} -n ${KUBERNETES_NAMESPACE}
+
+oc new-app ${SYNDESIS_TEMPLATE_TYPE} \
+ -p ROUTE_HOSTNAME=${KUBERNETES_NAMESPACE}.b6ff.rh-idev.openshiftapps.com \
+ -p OPENSHIFT_MASTER=${OPENSHIFT_MASTER} \
+ -p OPENSHIFT_OAUTH_CLIENT_ID=$(oc project -q) \
+ -p DEMO_DATA_ENABLED=${DEMO_DATA_ENABLED} \
+ -p TEST_SUPPORT_ENABLED=true \
+ -n ${KUBERNETES_NAMESPACE}
