|
1 | 1 | # Maven |
2 | 2 |
|
3 | 3 | trigger: |
4 | | -- master |
| 4 | + - master |
5 | 5 |
|
6 | 6 | pool: |
7 | 7 | vmImage: 'windows-latest' |
8 | 8 |
|
9 | 9 | steps: |
10 | | -- task: ScreenResolutionUtility@1 |
11 | | - inputs: |
12 | | - displaySettings: 'optimal' |
13 | | -- task: Maven@3 |
14 | | - inputs: |
15 | | - mavenPomFile: 'pom.xml' |
16 | | - mavenOptions: '-Xmx3072m' |
17 | | - javaHomeOption: 'JDKVersion' |
18 | | - jdkVersionOption: '1.8' |
19 | | - jdkArchitectureOption: 'x64' |
20 | | - publishJUnitResults: true |
21 | | - testResultsFiles: '**/surefire-reports/TEST-*.xml' |
22 | | - goals: 'clean test -DdriverSettings.chrome.webDriverVersion=75.0.3770.140 -Dprofile=local' |
| 10 | + - task: SonarCloudPrepare@1 |
| 11 | + inputs: |
| 12 | + SonarCloud: 'SonarCloud' |
| 13 | + organization: 'aqualityautomation' |
| 14 | + scannerMode: 'CLI' |
| 15 | + configMode: 'file' |
| 16 | + |
| 17 | + - task: ScreenResolutionUtility@1 |
| 18 | + inputs: |
| 19 | + displaySettings: 'optimal' |
| 20 | + |
| 21 | + - task: Maven@3 |
| 22 | + inputs: |
| 23 | + mavenPomFile: 'pom.xml' |
| 24 | + mavenOptions: '-Xmx3072m' |
| 25 | + javaHomeOption: 'JDKVersion' |
| 26 | + jdkVersionOption: '1.8' |
| 27 | + jdkArchitectureOption: 'x64' |
| 28 | + publishJUnitResults: true |
| 29 | + testResultsFiles: '**/surefire-reports/TEST-*.xml' |
| 30 | + goals: 'clean test -DdriverSettings.chrome.webDriverVersion=75.0.3770.140 -Dprofile=local' |
| 31 | + |
| 32 | + - task: SonarCloudAnalyze@1 |
| 33 | + |
| 34 | + - task: SonarCloudPublish@1 |
| 35 | + inputs: |
| 36 | + pollingTimeoutSec: '300' |
0 commit comments