Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/prepare_build.sh')
-rwxr-xr-xscripts/prepare_build.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/prepare_build.sh b/scripts/prepare_build.sh
index 2b041892eab..48b046116e4 100755
--- a/scripts/prepare_build.sh
+++ b/scripts/prepare_build.sh
@@ -2,11 +2,15 @@
. scripts/utils.sh
+echo $CI_JOB_NAME
+job_name=$(echo $CI_JOB_NAME | cut -f2 -d' ')
+echo $job_name
+
export SETUP_DB=${SETUP_DB:-true}
-export GITLAB_DATABASE=${GITLAB_DATABASE:-postgresql}
+export GITLAB_DATABASE=${GITLAB_DATABASE:-$job_name}
export USE_BUNDLE_INSTALL=${USE_BUNDLE_INSTALL:-true}
-if [ "$GITLAB_DATABASE" = 'pg' ]; then
+if [ "$GITLAB_DATABASE" != 'mysql' ]; then
export GITLAB_DATABASE='postgresql'
fi