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:
DOCKER_TLS_CERTDIR: ""
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.10-gitlab.1"
needs: []
before_script:
- export SOURCE_CODE=$PWD
script:
- export SOURCE_CODE=$PWD
- |
if ! docker info &>/dev/null; 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