Skip to content

Commit 4b51078

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines
1 parent b91762d commit 4b51078

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

azure-pipelines.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
# Maven
2-
# Build your Java project and run tests with Apache Maven.
3-
# Add steps that analyze code, save build artifacts, deploy, and more:
4-
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
52

63
trigger:
74
- master
@@ -13,6 +10,20 @@ steps:
1310
- task: ScreenResolutionUtility@1
1411
inputs:
1512
displaySettings: 'optimal'
13+
- task: SonarCloudPrepare@1
14+
inputs:
15+
SonarCloud: 'SonarCloud'
16+
organization: 'aqualityautomation'
17+
scannerMode: 'CLI'
18+
configMode: 'file'
19+
configFile: '.sonarcloud.properties'
20+
# Build your Java project and run tests with Apache Maven.
21+
# Add steps that analyze code, save build artifacts, deploy, and more:
22+
# https://docs.microsoft.com/azure/devops/pipelines/languages/java
23+
- task: SonarCloudAnalyze@1
24+
- task: SonarCloudPublish@1
25+
inputs:
26+
pollingTimeoutSec: '300'
1627
- task: Maven@3
1728
inputs:
1829
mavenPomFile: 'pom.xml'

0 commit comments

Comments
 (0)