diff --git a/Jenkinsfile b/Jenkinsfile index 7e2b9df1..49b1cbe3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -87,11 +87,11 @@ pipeline { archiveArtifacts allowEmptyArchive: false, artifacts: 'bin/*' publishHTML([ allowMissing: false, - alwaysLinkToLastBuild: true, + alwaysLinkToLastBuild: false, keepAll: false, - reportDir: 'backend-coverage', - reportFiles: 'index.html', - reportName: 'Backend Coverage', + reportDir: 'html-reports', + reportFiles: 'backend-coverage.html', + reportName: 'HTML Reports', useWrapperFileDirectly: true ]) } diff --git a/scripts/ci/test-backend b/scripts/ci/test-backend index ff95418f..07e85cf5 100755 --- a/scripts/ci/test-backend +++ b/scripts/ci/test-backend @@ -44,10 +44,10 @@ if [ "${1:-}" = "--inside-docker" ]; then cd /app/backend [ -z "$(go tool fix -diff ./internal)" ] go test -json -cover -coverprofile="/tmp/coverage.out" ./internal/... | tparse - mkdir "$DIR/../../backend-coverage" - go tool cover -html="/tmp/coverage.out" -o "$DIR/../../backend-coverage/index.html" + mkdir "$DIR/../../html-reports" + go tool cover -html="/tmp/coverage.out" -o "$DIR/../../html-reports/backend-coverage.html" rm -f "/tmp/coverage.out" - chown -R 1000:1000 "$DIR/../../backend-coverage" + chown -R 1000:1000 "$DIR/../../html-reports" golangci-lint -v run ./... else # run this script from within docker