test url stuff
This commit is contained in:
@ -8,6 +8,20 @@ versionize:
|
||||
before_script:
|
||||
- VERSION=`echo -e "import yaml\nwith open('openapi.yaml') as f:d=yaml.load(f)\nprint d['info']['version']" | python`
|
||||
|
||||
extract_client_definition:
|
||||
after_script:
|
||||
- if [ $CI_COMMIT_BRANCH = test_deployment_v* ]; then
|
||||
URL="https://test.webservices.krohne.com/"
|
||||
elif [ $CI_COMMIT_BRANCH = dev_deployment_v* ]; then
|
||||
URL="https://dev.webservices.krohne.com/"
|
||||
elif [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then
|
||||
URL="https://prod.webservices.krohne.com/"
|
||||
else
|
||||
echo "no server url set"
|
||||
exit -1
|
||||
fi
|
||||
- sed -i -e 's,\(openapi:[[:space:]][[:digit:]]\.[[:digit:]]\.[[:digit:]]\),\1\nservers:\n - url: '$URL'\n,' ws.json
|
||||
|
||||
.deploy_test_dev:
|
||||
extends: .deploy
|
||||
tags:
|
||||
|
Reference in New Issue
Block a user