summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcia Ramos <virtua.creative@gmail.com>2018-04-18 18:13:38 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-04-20 10:25:32 +0100
commit1d0e736c97cbb08a6c1cdb3a8ed92eb353cb7687 (patch)
treed09747db277dfce429074f6d8104b6077212a96c
parentf9dbb12279f7fd7d438d245df8d7b75dd2cd86e8 (diff)
downloadgitlab-ce-1d0e736c97cbb08a6c1cdb3a8ed92eb353cb7687.tar.gz
Merge branch 'docs-fix-sp-examples' into 'master'
Fix code climate example See merge request gitlab-org/gitlab-ce!18267
-rw-r--r--doc/ci/examples/code_climate.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/ci/examples/code_climate.md b/doc/ci/examples/code_climate.md
index 92317c77427..d1aa783cc9c 100644
--- a/doc/ci/examples/code_climate.md
+++ b/doc/ci/examples/code_climate.md
@@ -17,7 +17,11 @@ codequality:
- docker:stable-dind
script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
- - docker run --env SOURCE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
+ - docker run
+ --env SOURCE_CODE="$PWD"
+ --volume "$PWD":/code
+ --volume /var/run/docker.sock:/var/run/docker.sock
+ "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code
artifacts:
paths: [codeclimate.json]
```