Compare commits
9 Commits
refactored
...
dev-mkoebi
| Author | SHA1 | Date | |
|---|---|---|---|
| f720f37f09 | |||
| e4f2717423 | |||
| f758abbc21 | |||
| f98995332c | |||
| 2505c6ddcd | |||
| 818089917d | |||
| b6adf386f5 | |||
| f07d3e62a8 | |||
|
|
1beaca2622 |
23
Hochbaustatistik/config/Jenkinsfile
vendored
23
Hochbaustatistik/config/Jenkinsfile
vendored
@@ -4,7 +4,7 @@ pipeline
|
||||
{
|
||||
node
|
||||
{
|
||||
label 'Jenkins_Homer'
|
||||
label 'jenkins_homer_agent'
|
||||
}
|
||||
}
|
||||
stages
|
||||
@@ -13,17 +13,14 @@ pipeline
|
||||
{
|
||||
environment
|
||||
{
|
||||
dotnet ="C:\\Program Files\\dotnet\\"
|
||||
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
||||
token = 'sqa_71202f188aacbe40492ba767cf3e841179d3f41a'
|
||||
project = 'hochbaustatistik'
|
||||
dotnet ="C:\\Program Files\\dotnet\\"
|
||||
|
||||
}
|
||||
steps
|
||||
{
|
||||
cleanWs()
|
||||
checkout scm
|
||||
bat "dotnet restore Hochbaustatistik\\Hochbaustatistik.sln"
|
||||
bat "${scannerHome}\\SonarScanner.MSBuild.exe begin /k:${project} /d:sonar.login=${token} /d:sonar.verbose=true /d:sonar.cs.opencover.reportsPaths=${WORKSPACE}\\coverage.xml"
|
||||
bat "dotnet restore Hochbaustatistik\\Hochbaustatistik.sln"
|
||||
bat "\"${tool 'MSBuild17'}\" ${WORKSPACE}\\Hochbaustatistik\\Hochbaustatistik.sln /t:Restore /t:Rebuild /p:Configuration=Debug"
|
||||
}
|
||||
}
|
||||
@@ -44,14 +41,16 @@ pipeline
|
||||
stage('SonarQube')
|
||||
{
|
||||
environment
|
||||
{
|
||||
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
||||
token = 'sqa_a11eb81bb62f3777b11679484aee7e65ed739ef2'
|
||||
project = 'hochbaustatistik'
|
||||
{
|
||||
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
||||
//token = '5f6fffb1bd335a10f8da70b77701bb73d6cd15cf'
|
||||
token = 'sqa_71202f188aacbe40492ba767cf3e841179d3f41a'
|
||||
project = 'hochbaustatistik'
|
||||
}
|
||||
steps
|
||||
{
|
||||
bat "${scannerHome}\\SonarScanner.MSBuild.exe end /d:sonar.login=${token}"
|
||||
bat "${scannerHome}\\SonarScanner.MSBuild.exe begin /k:${project} /d:sonar.token=${token} /d:sonar.verbose=true /d:sonar.cs.opencover.reportsPaths=${WORKSPACE}\\coverage.xml
|
||||
bat "${scannerHome}\\SonarScanner.MSBuild.exe end /d:sonar.token=${token}"
|
||||
}
|
||||
}
|
||||
stage('Coverage')
|
||||
|
||||
Reference in New Issue
Block a user