1
- # Starter pipeline
2
-
3
- # Start with a minimal pipeline that you can customize to build and deploy your code.
4
- # Add steps that build, run tests, deploy, and more:
5
- # https://aka.ms/yaml
6
-
7
1
variables :
8
2
buildConfiguration : ' Release'
9
3
webDriverVersion : ' 75.0.3770.140'
@@ -16,16 +10,30 @@ pool:
16
10
vmImage : ' windows-latest'
17
11
18
12
steps :
19
- - task : PowerShell@2
20
- displayName : install calculator
13
+
14
+ - task : SonarCloudPrepare@1
15
+ displayName : ' Prepare SonarCloud analysis'
21
16
inputs :
22
- targetType : ' inline'
23
- script : ' Get-AppxPackage -allusers *windowscalculator* | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register “$($_.InstallLocation)\AppXManifest.xml”}'
17
+ SonarCloud : ' SonarCloud'
18
+ organization : ' aqualityautomation'
19
+ projectKey : ' aquality-automation_aquality-selenium-core-dotnet'
20
+ projectName : ' aquality-selenium-core-dotnet'
21
+ projectVersion : ' $(Build.BuildNumber)'
22
+ extraProperties : |
23
+ sonar.coverage.exclusions=**/**
24
24
25
25
- script : dotnet build Aquality.Selenium.Core/Aquality.Selenium.Core.sln -c $(buildConfiguration)
26
26
displayName : ' Build solution - $(buildConfiguration)'
27
+ - task : SonarCloudAnalyze@1
28
+ displayName : ' Run SonarCloud code analysis'
29
+ continueOnError : true
30
+
31
+ - task : SonarCloudPublish@1
32
+ displayName : ' Publish SonarCloud quality gate results'
33
+ continueOnError : true
34
+
27
35
- task : Windows Application Driver@0
28
- displayName : start WinAppDriver
36
+ displayName : ' Start WinAppDriver'
29
37
inputs :
30
38
OperationType : ' Start'
31
39
- task : DotNetCoreCLI@2
38
46
- task : Windows Application Driver@0
39
47
displayName : stop WinAppDriver
40
48
inputs :
41
- OperationType : ' Stop'
49
+ OperationType : ' Stop'
50
+
0 commit comments