9 Commits

Author SHA1 Message Date
f720f37f09 Hochbaustatistik/config/Jenkinsfile aktualisiert
Steps und Environment angepasst
2026-06-15 08:38:51 +00:00
e4f2717423 Hochbaustatistik/config/Jenkinsfile aktualisiert
wieder altes Token hinzugefügt
2026-06-15 08:20:31 +00:00
f758abbc21 Hochbaustatistik/config/Jenkinsfile aktualisiert
Neues Token generiert
2026-06-15 08:18:55 +00:00
f98995332c Hochbaustatistik/config/Jenkinsfile aktualisiert
Argument für Sonarqube-token angepasst, da immerzu FM "The token you provided doesn't have sufficient rights to check license"
2026-06-15 07:48:57 +00:00
2505c6ddcd Hochbaustatistik/config/Jenkinsfile aktualisiert
Token auch in der SonarQube-Sektion korrigiert
2026-06-15 07:46:55 +00:00
818089917d Hochbaustatistik/config/Jenkinsfile aktualisiert
Ursprüngliches Token wieder verwendet. Dass die Analyse nicht durchgeführt werden konnte lag an eingeschränkten Benutzerberechtigungen in SQ für den User jenkins_build nicht am Token selbst.
2026-06-15 07:35:34 +00:00
b6adf386f5 Hochbaustatistik/config/Jenkinsfile aktualisiert
Token erneut überschrieben
2026-06-15 07:17:50 +00:00
f07d3e62a8 Hochbaustatistik/config/Jenkinsfile aktualisiert
Token für SQ-Analyse ersetzt
2026-06-15 07:05:24 +00:00
dev-mkoebis
1beaca2622 Jenkins Pipeline angepasst auf neuen Jenkins Agenten "jenkins_home_agent" 2026-06-11 09:44:26 +02:00

View File

@@ -4,7 +4,7 @@ pipeline
{ {
node node
{ {
label 'Jenkins_Homer' label 'jenkins_homer_agent'
} }
} }
stages stages
@@ -14,16 +14,13 @@ 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"
} }
} }
@@ -46,12 +43,14 @@ pipeline
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'
token = 'sqa_71202f188aacbe40492ba767cf3e841179d3f41a'
project = 'hochbaustatistik' 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')