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
|
node
|
||||||
{
|
{
|
||||||
label 'Jenkins_Homer'
|
label 'jenkins_homer_agent'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stages
|
stages
|
||||||
@@ -13,17 +13,14 @@ pipeline
|
|||||||
{
|
{
|
||||||
environment
|
environment
|
||||||
{
|
{
|
||||||
dotnet ="C:\\Program Files\\dotnet\\"
|
dotnet ="C:\\Program Files\\dotnet\\"
|
||||||
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
|
||||||
token = 'sqa_71202f188aacbe40492ba767cf3e841179d3f41a'
|
|
||||||
project = 'hochbaustatistik'
|
|
||||||
}
|
}
|
||||||
steps
|
steps
|
||||||
{
|
{
|
||||||
cleanWs()
|
cleanWs()
|
||||||
checkout scm
|
checkout scm
|
||||||
bat "dotnet restore Hochbaustatistik\\Hochbaustatistik.sln"
|
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 "\"${tool 'MSBuild17'}\" ${WORKSPACE}\\Hochbaustatistik\\Hochbaustatistik.sln /t:Restore /t:Rebuild /p:Configuration=Debug"
|
bat "\"${tool 'MSBuild17'}\" ${WORKSPACE}\\Hochbaustatistik\\Hochbaustatistik.sln /t:Restore /t:Rebuild /p:Configuration=Debug"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -44,14 +41,16 @@ pipeline
|
|||||||
stage('SonarQube')
|
stage('SonarQube')
|
||||||
{
|
{
|
||||||
environment
|
environment
|
||||||
{
|
{
|
||||||
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
||||||
token = 'sqa_a11eb81bb62f3777b11679484aee7e65ed739ef2'
|
//token = '5f6fffb1bd335a10f8da70b77701bb73d6cd15cf'
|
||||||
project = 'hochbaustatistik'
|
token = 'sqa_71202f188aacbe40492ba767cf3e841179d3f41a'
|
||||||
|
project = 'hochbaustatistik'
|
||||||
}
|
}
|
||||||
steps
|
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')
|
stage('Coverage')
|
||||||
|
|||||||
Reference in New Issue
Block a user