diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c5ee71bc383c0b32bf3f8a1ddc69ba6584fbfd2b..c053799dec44ed39e9c01e3d6bdbc6c72b121c07 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -55,7 +55,7 @@ sync: GIT_STRATEGY: "none" only: variables: - - $GIT_PUSH_URL =~ /^\S+$/ && $GIT_PUSH_BRANCH =~ /^\S+$/ && ($GIT_PUSH_PASSWORD =~ /^\S+$/ || $SSH_PULL_PRIVATE_KEY=~ /^\S+$/) && $GIT_PULL_URL =~ /^\S+$/ && $GIT_PULL_BRANCH =~ /^\S+$/ + - $GIT_PUSH_URL =~ /^\S+$/ && ($GIT_PUSH_PASSWORD =~ /^\S+$/ || $SSH_PULL_PRIVATE_KEY=~ /^\S+$/) && $GIT_PULL_URL =~ /^\S+$/ before_script: - git config --global credential.helper store && touch ~/.git-credentials - test -n "${GIT_PULL_PASSWORD}" && echo "https://${GIT_PULL_LOGIN:-oauth2}:${GIT_PULL_PASSWORD}@$(echo ${GIT_PULL_URL} | sed -r 's#([^/])/[^/].*#\1#' | sed -e 's|https://||g')" >> ~/.git-credentials || true