Compare commits

..

No commits in common. "c89a43d4472f7af29fa4d03360fe58a9dadaed04" and "8736a2ef5eb94ab20627d87a7c3c97ec828dce36" have entirely different histories.

4
Jenkinsfile vendored
View File

@ -16,7 +16,7 @@ pipeline {
docker { image 'golang:1.22-alpine' } docker { image 'golang:1.22-alpine' }
} }
steps { steps {
sh 'go test -v ./... -json -coverprofile=coverage.out | tee test-report.out' sh 'go test -v ./... -json -coverprofile=coverage.out > test-report.out'
} }
} }
stage('SonarQube Analysis') { stage('SonarQube Analysis') {
@ -27,7 +27,7 @@ pipeline {
script { script {
def scannerHome = tool 'SonarScanner' def scannerHome = tool 'SonarScanner'
withSonarQubeEnv() { withSonarQubeEnv() {
sh "${scannerHome}/bin/sonar-scanner -Dsonar.coverageReportPaths=coverage.out -Dsonar.testExecutionReportPaths=test-report.out" sh "${scannerHome}/bin/sonar-scanner"
} }
} }
} }