Compare commits
2 Commits
8736a2ef5e
...
c89a43d447
Author | SHA1 | Date | |
---|---|---|---|
c89a43d447 | |||
e3b78ebaf3 |
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -16,7 +16,7 @@ pipeline {
|
||||
docker { image 'golang:1.22-alpine' }
|
||||
}
|
||||
steps {
|
||||
sh 'go test -v ./... -json -coverprofile=coverage.out > test-report.out'
|
||||
sh 'go test -v ./... -json -coverprofile=coverage.out | tee test-report.out'
|
||||
}
|
||||
}
|
||||
stage('SonarQube Analysis') {
|
||||
@ -27,7 +27,7 @@ pipeline {
|
||||
script {
|
||||
def scannerHome = tool 'SonarScanner'
|
||||
withSonarQubeEnv() {
|
||||
sh "${scannerHome}/bin/sonar-scanner"
|
||||
sh "${scannerHome}/bin/sonar-scanner -Dsonar.coverageReportPaths=coverage.out -Dsonar.testExecutionReportPaths=test-report.out"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user