JK
This commit is contained in:
parent
5115272eba
commit
da92bc04d1
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -159,7 +159,7 @@ pipeline {
|
|||||||
|
|
||||||
# Ensure scanner is available and PATH includes global tools
|
# Ensure scanner is available and PATH includes global tools
|
||||||
dotnet tool update --global dotnet-sonarscanner
|
dotnet tool update --global dotnet-sonarscanner
|
||||||
export PATH="$PATH:/root/.dotnet/tools"
|
export PATH="$PATH:${HOME}/.dotnet/tools"
|
||||||
|
|
||||||
# dotnet sonarscanner begin \
|
# dotnet sonarscanner begin \
|
||||||
# /k:"${SONAR_PROJECT_KEY}" \
|
# /k:"${SONAR_PROJECT_KEY}" \
|
||||||
@ -193,7 +193,7 @@ pipeline {
|
|||||||
// Close the Sonar analysis and push data to the server.
|
// Close the Sonar analysis and push data to the server.
|
||||||
withSonarQubeEnv('SonarQube') {
|
withSonarQubeEnv('SonarQube') {
|
||||||
sh '''#!/bin/bash -e
|
sh '''#!/bin/bash -e
|
||||||
# dotnet sonarscanner end /d:sonar.login="${SONAR_AUTH_TOKEN}"
|
export PATH="$PATH:${HOME}/.dotnet/tools"
|
||||||
dotnet sonarscanner end
|
dotnet sonarscanner end
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user