summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-03-02 17:10:50 +0000
committerNick Thomas <nick@gitlab.com>2018-03-02 18:34:34 +0000
commit57ce7c655cc58ee793cf6514fae590fa53850884 (patch)
tree08340bcb8cef159f4b81caead52f0066b102026c /.gitlab-ci.yml
parente17d8ad8476148daedb6dcb3c0c7aee2db4db60d (diff)
downloadgitlab-ce-57ce7c655cc58ee793cf6514fae590fa53850884.tar.gz
codequality: Install jq directly instead of pulling it via docker
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a0c9802c15..8b489f1a07c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -619,9 +619,10 @@ codequality:
cache: {}
dependencies: []
script:
+ - apk update && apk add jq
- ./scripts/codequality analyze -f json > raw_codeclimate.json || true
# The following line keeps only the fields used in the MR widget, reducing the JSON artifact size
- - cat raw_codeclimate.json | docker run -i stedolan/jq -c 'map({check_name,description,fingerprint,location})' > codeclimate.json
+ - jq -c 'map({check_name,description,fingerprint,location})' raw_codeclimate.json > codeclimate.json
artifacts:
paths: [codeclimate.json]
expire_in: 1 week