Skip to content
Snippets Groups Projects
Commit 6f40a749 authored by Isha Kumari's avatar Isha Kumari
Browse files

changes in IBM bootstrap.sh to fix bootstrap issue

parent 97d42101
No related branches found
No related tags found
1 merge request!574changes in IBM bootstrap.sh to fix bootstrap issue
Pipeline #218764 failed
curl -H 'Content-Type: application/json' -X DELETE -u $IBM_QA_DB_USER:$IBM_QA_DB_PASSWORD $IBM_QA_DB_URL/oc-cpd-dataecosystem-opendes-schema2
curl -H 'Content-Type: application/json' -X DELETE -u $IBM_QA_DB_USER:$IBM_QA_DB_PASSWORD $IBM_QA_DB_URL/oc-cpd-dataecosystem-common-schema2
export IBM_SCHEMA_URL=$IBM_SCHEMA_HOST/api/schema-service/v1/schemas/system
BEARER_TOKEN=`python $IBM_DEPLOYMENTS_SUBDIR/Token.py`
echo $IBM_SCHEMA_HOST
export IBM_SCHEMA_SERVICE_URL=$IBM_SCHEMA_HOST/api/schema-service/v1/schemas/system
currentStatus="success"
currentMessage="All schemas uploaded successfully"
BEARER_TOKEN=`python3 $IBM_DEPLOYMENTS_SUBDIR/Token.py`;
export BEARER_TOKEN=$BEARER_TOKEN
python $IBM_DEPLOYMENTS_SCRIPTS_SUBDIR/DeploySharedSchemas.py -u $IBM_SCHEMA_URL
python deployments/scripts/DeploySharedSchemas.py -u $IBM_SCHEMA_SERVICE_URL
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
echo "$currentMessage"
if [[ ${currentStatus} == "success" ]]; then
exit 0
else
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment