Skip to content

Commit 3379f3a

Browse files
committed
Tweaks to html report
1 parent 4ec1b4e commit 3379f3a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Jenkinsfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ pipeline {
8787
archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*'
8888
publishHTML([
8989
allowMissing: false,
90-
alwaysLinkToLastBuild: true,
90+
alwaysLinkToLastBuild: false,
9191
keepAll: false,
92-
reportDir: 'backend-coverage',
93-
reportFiles: 'index.html',
94-
reportName: 'Backend Coverage',
92+
reportDir: 'html-reports',
93+
reportFiles: 'backend-coverage.html',
94+
reportName: 'HTML Reports',
9595
useWrapperFileDirectly: true
9696
])
9797
}

scripts/ci/test-backend

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ if [ "${1:-}" = "--inside-docker" ]; then
4444
cd /app/backend
4545
[ -z "$(go tool fix -diff ./internal)" ]
4646
go test -json -cover -coverprofile="/tmp/coverage.out" ./internal/... | tparse
47-
mkdir "$DIR/../../backend-coverage"
48-
go tool cover -html="/tmp/coverage.out" -o "$DIR/../../backend-coverage/index.html"
47+
mkdir "$DIR/../../html-reports"
48+
go tool cover -html="/tmp/coverage.out" -o "$DIR/../../html-reports/backend-coverage.html"
4949
rm -f "/tmp/coverage.out"
50-
chown -R 1000:1000 "$DIR/../../backend-coverage"
50+
chown -R 1000:1000 "$DIR/../../html-reports"
5151
golangci-lint -v run ./...
5252
else
5353
# run this script from within docker

0 commit comments

Comments
 (0)