ci: publish coverage before sonar gate

This commit is contained in:
codex 2026-05-15 14:23:03 -03:00
parent 808b2e7c0e
commit c84bb14771

4
Jenkinsfile vendored
View File

@ -101,6 +101,10 @@ spec:
sh '''#!/usr/bin/env bash
set -euo pipefail
mkdir -p build
export GOFLAGS='-buildvcs=false'
if [ ! -s build/coverage.out ]; then
go test ./... -coverprofile=build/coverage.out
fi
args=(
"-Dsonar.host.url=${SONARQUBE_HOST_URL}"
"-Dsonar.login=${SONARQUBE_TOKEN}"