JK
This commit is contained in:
parent
de550c12ec
commit
1fdb849818
21
Jenkinsfile
vendored
21
Jenkinsfile
vendored
@ -156,13 +156,24 @@ pipeline {
|
|||||||
}
|
}
|
||||||
withSonarQubeEnv('SonarQube') {
|
withSonarQubeEnv('SonarQube') {
|
||||||
sh '''#!/bin/bash -e
|
sh '''#!/bin/bash -e
|
||||||
|
|
||||||
|
# Ensure scanner is available and PATH includes global tools
|
||||||
|
dotnet tool update --global dotnet-sonarscanner
|
||||||
|
export PATH="$PATH:/root/.dotnet/tools"
|
||||||
|
|
||||||
|
// dotnet sonarscanner begin \
|
||||||
|
// /k:"${SONAR_PROJECT_KEY}" \
|
||||||
|
// /n:"${SONAR_PROJECT_NAME}" \
|
||||||
|
// /v:"${SONAR_PROJECT_VERSION}" \
|
||||||
|
// /d:sonar.host.url="${SONAR_HOST_URL}" \
|
||||||
|
// /d:sonar.login="${SONAR_AUTH_TOKEN}" \
|
||||||
|
// /d:sonar.cs.opencover.reportsPaths="${COVERAGE_FILE}"
|
||||||
|
|
||||||
|
|
||||||
dotnet sonarscanner begin \
|
dotnet sonarscanner begin \
|
||||||
/k:"${SONAR_PROJECT_KEY}" \
|
/k:AS400API \
|
||||||
/n:"${SONAR_PROJECT_NAME}" \
|
|
||||||
/v:"${SONAR_PROJECT_VERSION}" \
|
|
||||||
/d:sonar.host.url="${SONAR_HOST_URL}" \
|
|
||||||
/d:sonar.login="${SONAR_AUTH_TOKEN}" \
|
|
||||||
/d:sonar.cs.opencover.reportsPaths="${COVERAGE_FILE}"
|
/d:sonar.cs.opencover.reportsPaths="${COVERAGE_FILE}"
|
||||||
|
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user