From 74fde7b118498beb9464a0ee2f875f74929b6c0d Mon Sep 17 00:00:00 2001 From: Wolfgang Ludger Hottgenroth Date: Tue, 7 Dec 2021 13:35:42 +0100 Subject: [PATCH] ugh, typo in branch name --- .gitlab-ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 361730b..8da6228 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,9 +12,9 @@ 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 = development_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[[:digit:]] ]]; then URL="https://test.webservices.krohne.com/"; fi + - if [[ "$CI_COMMIT_BRANCH" =~ ^development_deployment_v[[:digit:]] ]]; then URL="https://dev.webservices.krohne.com/"; fi + - if [[ "$CI_COMMIT_BRANCH" =~ ^production_deployment_v[[:digit:]] ]]; 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