File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ pipeline {
2+ agent any
3+ environment {
4+ DOTNET_SYSTEM_GLOBALIZATION_INVARIANT = 1
5+ }
6+ tools {
7+ dotnetsdk ' dotnet8'
8+ }
9+ stages {
10+ stage(' Pre-Build' ) {
11+ steps {
12+ dotnetRestore()
13+ }
14+ }
15+ stage(' Build' ) {
16+ steps {
17+ dotnetBuild()
18+ }
19+ }
20+ stage(' Sonar' ) {
21+ environment {
22+ scannerHome = tool ' SonarScanner for MSBuild'
23+ }
24+ steps {
25+ withSonarQubeEnv(' SonarQube Community' ) {
26+ sh " dotnet ${ scannerHome} /SonarScanner.MSBuild.dll begin /k:'leosac_wpfapp_3500a663-6111-478b-bb5b-c549202f403b'"
27+ dotnetBuild()
28+ sh " dotnet ${ scannerHome} /SonarScanner.MSBuild.dll end"
29+ }
30+ timeout(time : 1 , unit : ' HOURS' ) {
31+ waitForQualityGate(abortPipeline : true )
32+ }
33+ }
34+ when {
35+ anyOf {
36+ branch ' main'
37+ buildingTag()
38+ changeRequest()
39+ }
40+ }
41+ }
42+ }
43+ }
You can’t perform that action at this time.
0 commit comments