Files
odo/scripts/openshiftci-e2e-4x-psi-tests.sh
Tomas Kral 5f79c542a8 openshift/odo -> redhat-developer/odo (#5268)
* openshift/odo -> redhat-developer/odo

* update more links to redhat-developer
2021-12-01 16:38:34 +01:00

38 lines
1.5 KiB
Bash
Executable File

#!/bin/sh
# fail if some commands fails
set -e
# Hide command that deals with secrets
set +x
if [[ -f $ODO_RABBITMQ_AMQP_URL ]]; then
export AMQP_URI=$(cat $ODO_RABBITMQ_AMQP_URL)
fi
export AMQP_URI=${AMQP_URI:?"Please set AMQP_URI env with amqp uri or provide path of file containing it as ODO_RABBITMQ_AMQP_URL env"}
export SENDQUEUE=${SENDQUEUE:-"amqp.ci.queue.send"}
export SENDTOPIC=${SENDTOPIC:-"amqp.ci.topic.send"}
export SETUPSCRIPT=${SETUPSCRIPT:-"scripts/setup_script_e2e.sh"}
export RUNSCRIPT=${RUNSCRIPT:-"scripts/run_script_e2e.sh"}
export SENDEXCHANGE=${SENDEXCHANGE:-"amqp.ci.exchange.send"}
export TIMEOUT=${TIMEOUT:-"4h00m"}
# show commands
set -x
export JOB_NAME=${JOB_NAME:-"odo-pr-build"}
export REPO_URL="https://github.com/redhat-developer/odo"
# Extract PR NUMBER from prow job spec, which is injected by prow.
export TARGET="$(jq .refs.pulls[0].number <<< $(echo $JOB_SPEC))"
export CUSTOM_HOMEDIR=$ARTIFACT_DIR
##### ci-firewall parameters end
# The version of CI_FIREWALL TO USE
export CI_FIREWALL_VERSION="v0.1.2"
echo "Getting ci-firewall, see https://github.com,/mohammedzee1000/ci-firewall"
curl -kLO https://github.com/mohammedzee1000/ci-firewall/releases/download/$CI_FIREWALL_VERSION/ci-firewall-linux-amd64.tar.gz
tar -xzf ci-firewall-linux-amd64.tar.gz
./ci-firewall request --mainbranch main --sendqueue $SENDQUEUE --sendtopic $SENDTOPIC --sendexchange $SENDEXCHANGE --setupscript $SETUPSCRIPT --jenkinsproject $JOB_NAME --runscript $RUNSCRIPT --timeout $TIMEOUT