ci: publish coverage before sonar gate
This commit is contained in:
parent
808b2e7c0e
commit
c84bb14771
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user