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-
71variables :
82 buildConfiguration : ' Release'
93 webDriverVersion : ' 75.0.3770.140'
@@ -16,16 +10,30 @@ pool:
1610 vmImage : ' windows-latest'
1711
1812steps :
19- - task : PowerShell@2
20- displayName : install calculator
13+
14+ - task : SonarCloudPrepare@1
15+ displayName : ' Prepare SonarCloud analysis'
2116 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=**/**
2424
2525 - script : dotnet build Aquality.Selenium.Core/Aquality.Selenium.Core.sln -c $(buildConfiguration)
2626 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+
2735- task : Windows Application Driver@0
28- displayName : start WinAppDriver
36+ displayName : ' Start WinAppDriver'
2937 inputs :
3038 OperationType : ' Start'
3139- task : DotNetCoreCLI@2
3846- task : Windows Application Driver@0
3947 displayName : stop WinAppDriver
4048 inputs :
41- OperationType : ' Stop'
49+ OperationType : ' Stop'
50+
0 commit comments