File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ export CODACY_USERNAME=%Username%
4343
4444Additional requirements:
4545
46- - jq
4746- curl
4847
4948``` bash
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ codacy_reporter="$codacy_temp_folder/codacy-coverage-reporter-assembly.jar"
7878if [ ! -f " $codacy_reporter " ]
7979then
8080 log " $i " " Download the codacy reporter... ($CODACY_REPORTER_VERSION )"
81- curl -LS -o " $codacy_reporter " " $( curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/$CODACY_REPORTER_VERSION | jq -r ' .assets | map({name, browser_download_url} | select(.name | endswith(".jar"))) | .[0].browser_download_url ' ) "
81+ curl -LS -o " $codacy_reporter " " $( curl -LSs https://api.github.com/repos/codacy/codacy-coverage-reporter/releases/$CODACY_REPORTER_VERSION | grep browser_download_url | grep jar | cut -d ' " ' -f 4 ) "
8282else
8383 log " $i " " Using codacy reporter from cache"
8484fi
You can’t perform that action at this time.
0 commit comments