diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f03884..8f080bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,15 +11,9 @@ versionize: extract_client_definition: after_script: - URL="/" - - if [ $CI_COMMIT_BRANCH = test_deployment_v* ]; then - URL="https://test.webservices.krohne.com/" - fi - - if [ $CI_COMMIT_BRANCH = dev_deployment_v* ]; then - URL="https://dev.webservices.krohne.com/" - fi - - if [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then - URL="https://prod.webservices.krohne.com/" - fi + - if [ $CI_COMMIT_BRANCH = test_deployment_v* ]; then URL="https://test.webservices.krohne.com/"; fi + - if [ $CI_COMMIT_BRANCH = dev_deployment_v* ]; then URL="https://dev.webservices.krohne.com/"; fi + - if [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then URL="https://prod.webservices.krohne.com/"; fi - cat ws.json | jq 'setpath(["servers", 0, "url"]; "'$URL'")' > ws.json-new - rm ws.json && mv ws.json-new ws.json