Compare commits

..

2 Commits

Author SHA1 Message Date
c89a43d447 ci: added sonarqube coverage location & test location
Some checks failed
Anthrove/Otter-Space-SDK/pipeline/head There was a failure building this commit
2024-07-19 11:40:01 +02:00
e3b78ebaf3 ci: add test logging 2024-07-19 11:32:12 +02:00

4
Jenkinsfile vendored
View File

@ -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"
}
}
}