Commit a9298540 authored by Vicken Simonian's avatar Vicken Simonian Committed by Alessio Caiazza

Move before_script contents into script to prevent inadvertent

overriding by template users.
Fix #249361
parent 004cb345
---
title: Move before_script into script for CQ template
merge_request: 42782
author: Vicken Simonian @vicken.papaya
type: fixed
...@@ -9,9 +9,8 @@ code_quality: ...@@ -9,9 +9,8 @@ code_quality:
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.10-gitlab.1" CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.10-gitlab.1"
needs: [] needs: []
before_script:
- export SOURCE_CODE=$PWD
script: script:
- export SOURCE_CODE=$PWD
- | - |
if ! docker info &>/dev/null; then if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment