From 5e1df39deb609130fa0a1cf0461e5731d58632c3 Mon Sep 17 00:00:00 2001 From: Wolfgang Ludger Hottgenroth Date: Tue, 7 Dec 2021 13:25:40 +0100 Subject: [PATCH] test url stuff --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8f080bb..f841573 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,11 +10,14 @@ versionize: extract_client_definition: after_script: + - echo "CI_COMMIT_BRANCH:$CI_COMMIT_BRANCH" - 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 + - echo "URL:$URL" - cat ws.json | jq 'setpath(["servers", 0, "url"]; "'$URL'")' > ws.json-new + - cat ws.json-new - rm ws.json && mv ws.json-new ws.json .deploy_test_dev: