From 38b56bc43b2edfd7079cd01ce3af9412c44dabb9 Mon Sep 17 00:00:00 2001 From: Daniel Gerhardt <code@dgerhardt.net> Date: Thu, 31 Mar 2016 19:04:13 +0200 Subject: [PATCH] Encapsulate CI variables in quotes --- .gitlab-ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aa4d9a296..1ae627b06 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,11 +21,11 @@ sync_mirror: - staging allow_failure: true script: - - git clone --bare $CI_BUILD_REPO mirror.git + - git clone --bare "$CI_BUILD_REPO" mirror.git - cd mirror.git - git update-ref -d refs/tags/production - git update-ref -d refs/tags/staging - - git push --mirror $MIRROR_REPO + - git push --mirror "$MIRROR_REPO" sonar: stage: analysis @@ -66,11 +66,11 @@ tomcat_production: only: - production script: - - curl --upload-file $WAR_FILE https://$PROD_TOMCAT_USER:$PROD_TOMCAT_PASSWORD@$PROD_TOMCAT_HOST/manager/deploy?path=%2Fapi + - curl --upload-file "$WAR_FILE" "https://$PROD_TOMCAT_USER:$PROD_TOMCAT_PASSWORD@$PROD_TOMCAT_HOST/manager/deploy?path=%2Fapi" tomcat_development: stage: deploy only: - staging script: - - curl --upload-file $WAR_FILE https://$DEV_TOMCAT_USER:$DEV_TOMCAT_PASSWORD@$DEV_TOMCAT_HOST/manager/deploy?path=%2Fapi + - curl --upload-file "$WAR_FILE" "https://$DEV_TOMCAT_USER:$DEV_TOMCAT_PASSWORD@$DEV_TOMCAT_HOST/manager/deploy?path=%2Fapi" -- GitLab