5 Commits

2 changed files with 15 additions and 0 deletions

View File

@@ -221,6 +221,21 @@ spec:
x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="complete" routing_key="complete" ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done x=0; until [[ -n $( ./rabbitmqadmin -H ${RABBITHOST} -u ${RABBITUSER} -p ${RABBITPASS} declare binding source="conversion" destination_type="queue" destination="complete" routing_key="complete" ) || $x -eq 10 ]]; do echo "waiting for exchange to be created" && sleep 5 && ((x++)); done
if [[ "${x}" -eq 10 ]]; then exit 1; fi if [[ "${x}" -eq 10 ]]; then exit 1; fi
oc apply -f - <<EOF
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-conversion
namespace: goghvideo-test-${RANDOMID}
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 5Gi
storageClassName: nfs-client
volumeMode: Filesystem
EOF
echo -n "goghvideo-test-${RANDOMID}" > $(results.namespace.path) echo -n "goghvideo-test-${RANDOMID}" > $(results.namespace.path)
runAfter: runAfter:
- build - build