diff --git a/Jenkinsfile b/Jenkinsfile index e9ef5d0..4522886 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}"