test url stuff
This commit is contained in:
@ -10,15 +10,15 @@ versionize:
|
|||||||
|
|
||||||
extract_client_definition:
|
extract_client_definition:
|
||||||
after_script:
|
after_script:
|
||||||
|
- URL="/"
|
||||||
- if [ $CI_COMMIT_BRANCH = test_deployment_v* ]; then
|
- if [ $CI_COMMIT_BRANCH = test_deployment_v* ]; then
|
||||||
URL="https://test.webservices.krohne.com/"
|
URL="https://test.webservices.krohne.com/"
|
||||||
elif [ $CI_COMMIT_BRANCH = dev_deployment_v* ]; then
|
fi
|
||||||
|
- if [ $CI_COMMIT_BRANCH = dev_deployment_v* ]; then
|
||||||
URL="https://dev.webservices.krohne.com/"
|
URL="https://dev.webservices.krohne.com/"
|
||||||
elif [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then
|
fi
|
||||||
|
- if [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then
|
||||||
URL="https://prod.webservices.krohne.com/"
|
URL="https://prod.webservices.krohne.com/"
|
||||||
else
|
|
||||||
echo "no server url set"
|
|
||||||
exit -1
|
|
||||||
fi
|
fi
|
||||||
- cat ws.json | jq 'setpath(["servers", 0, "url"]; "'$URL'")' > ws.json-new
|
- cat ws.json | jq 'setpath(["servers", 0, "url"]; "'$URL'")' > ws.json-new
|
||||||
- rm ws.json && mv ws.json-new ws.json
|
- rm ws.json && mv ws.json-new ws.json
|
||||||
|
Reference in New Issue
Block a user