codequality: Install jq directly instead of pulling it via docker
This commit is contained in:
parent
e17d8ad847
commit
57ce7c655c
1 changed files with 2 additions and 1 deletions
|
@ -619,9 +619,10 @@ codequality:
|
||||||
cache: {}
|
cache: {}
|
||||||
dependencies: []
|
dependencies: []
|
||||||
script:
|
script:
|
||||||
|
- apk update && apk add jq
|
||||||
- ./scripts/codequality analyze -f json > raw_codeclimate.json || true
|
- ./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
|
# 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:
|
artifacts:
|
||||||
paths: [codeclimate.json]
|
paths: [codeclimate.json]
|
||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
|
|
Loading…
Reference in a new issue