Commit e9ee9a1c authored by Akshat  Joshi's avatar Akshat Joshi
Browse files

Merge branch 'master' into Bug-9334

parents d15fb613 6cfba786
Pipeline #112843 failed with stages
in 9 seconds
boto3==1.17.1
botocore==1.20.1
PyJWT==1.7.1
PyJWT==2.4.0
requests==2.23.00
\ No newline at end of file
......@@ -8,16 +8,22 @@ cleanup() {
trap cleanup EXIT
if [[ -z "${NAMESPACE}" ]]; then
NAMESPACE="osdu-azure"
NAMESPACE="osdu"
fi
export AZURE_SCHEMA_URL="http://schema.${NAMESPACE}.svc.cluster.local/api/schema-service/v1/schemas/system/"
if [[ -z "${AZURE_DNS_NAME}" ]]; then
AZURE_DNS_NAME="osdu-glab.msft-osdu-test.org"
fi
export AZURE_SCHEMA_URL="https://${AZURE_DNS_NAME}/api/schema-service/v1/schemas/system"
currentStatus="success"
currentMessage="All schemas uploaded successfully"
BEARER_TOKEN=`python $AZURE_DEPLOYMENTS_SUBDIR/Token.py`
export BEARER_TOKEN=$BEARER_TOKEN
python $AZURE_DEPLOYMENTS_SCRIPTS_SUBDIR/DeploySharedSchemas.py -u $AZURE_SCHEMA_URL
if [ $ret -ne 0 ]; then
ret=$?
echo "Return value is $ret"
if [[ $ret -ne 0 ]]; then
currentStatus="failure"
currentMessage="Schema loading failed. Please check error logs for more details."
fi
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment