From 0aee8ea4faf533eb1050e4d36eb2da48c426a9b0 Mon Sep 17 00:00:00 2001 From: Wolfgang Ludger Hottgenroth Date: Tue, 7 Dec 2021 13:20:30 +0100 Subject: [PATCH] test url stuff --- .gitlab-ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7d7f388..6f03884 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,15 +10,15 @@ versionize: extract_client_definition: after_script: + - URL="/" - if [ $CI_COMMIT_BRANCH = test_deployment_v* ]; then 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/" - elif [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then + fi + - if [ $CI_COMMIT_BRANCH = production_deployment_v* ]; then URL="https://prod.webservices.krohne.com/" - else - echo "no server url set" - exit -1 fi - cat ws.json | jq 'setpath(["servers", 0, "url"]; "'$URL'")' > ws.json-new - rm ws.json && mv ws.json-new ws.json