summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-27 21:13:52 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-27 21:13:52 +0000
commit816038ce37d387d8fc062f978c2fb2282acee7f3 (patch)
tree4a1841c88283220b852e1dfaeb5e606edd861316
parent8312b9aecf7551b5993b5266ecbb9157723e5204 (diff)
downloadgitlab-ce-dz-cleanup-codeclimate-json.tar.gz
Improve sed regex for codeclimate ci jobdz-cleanup-codeclimate-json
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index abb49506828..3995f489b5a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -473,7 +473,7 @@ codeclimate:
script:
- docker pull codeclimate/codeclimate
- docker run --env CODECLIMATE_CODE="$PWD" --volume "$PWD":/code --volume /var/run/docker.sock:/var/run/docker.sock --volume /tmp/cc:/tmp/cc codeclimate/codeclimate analyze -f json > codeclimate.json
- - sed -i.bak 's/\"body\"\:\".*\"//' codeclimate.json
+ - sed -i.bak 's/\({"body":"\)[^"]*\("}\)/\1\2/g' codeclimate.json
artifacts:
paths: [codeclimate.json]