Jenkinsfile angepasst
This commit is contained in:
20
Hochbaustatistik/config/Jenkinsfile
vendored
20
Hochbaustatistik/config/Jenkinsfile
vendored
@@ -43,8 +43,7 @@ pipeline
|
||||
environment
|
||||
{
|
||||
scannerHome = "C:\\home\\jenkins\\tools\\hudson.plugins.sonar.MsBuildSQRunnerInstallation\\C_sonar-runner"
|
||||
//token = '5f6fffb1bd335a10f8da70b77701bb73d6cd15cf'
|
||||
token = 'sqa_71202f188aacbe40492ba767cf3e841179d3f41a'
|
||||
token = 'sqa_sqa_07d4e3802cf6283fc38a002e75bd0a5eb158af87'
|
||||
project = 'hochbaustatistik'
|
||||
}
|
||||
steps
|
||||
@@ -53,22 +52,5 @@ pipeline
|
||||
bat "${scannerHome}\\SonarScanner.MSBuild.exe end /d:sonar.token=${token}"
|
||||
}
|
||||
}
|
||||
stage('Coverage')
|
||||
{
|
||||
environment
|
||||
{
|
||||
reportGen = "C:\\Nuget-Packages\\reportgenerator\\5.1.6\\tools\\net6.0\\ReportGenerator.exe"
|
||||
}
|
||||
steps
|
||||
{
|
||||
bat "${reportGen} -verbosity:Info -reports:${WORKSPACE}\\coverage.xml -targetdir:${WORKSPACE} -reporttypes:SonarQube;Cobertura;Html"
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
|
||||
step([$class: 'CoberturaPublisher', autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: '**/Cobertura.xml', failUnhealthy: false, failUnstable: false, maxNumberOfBuilds: 0, onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false])
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user