Skip to content

Commit 6d6a2f5

Browse files
updated azure pipeline.yml (added sonarcloud tasks) and sonar-project… (#58)
* updated azure pipeline.yml (added sonarcloud tasks) and sonar-project.properties (added project key)
1 parent f216e86 commit 6d6a2f5

File tree

2 files changed

+30
-15
lines changed

2 files changed

+30
-15
lines changed

azure-pipelines.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,36 @@
11
# Maven
22

33
trigger:
4-
- master
4+
- master
55

66
pool:
77
vmImage: 'windows-latest'
88

99
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'

.sonarcloud.properties renamed to sonar-project.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ sonar.sources=src/main
22
sonar.tests=src/test
33
sonar.language=java
44
sonar.java.binaries=.
5-
sonar.sourceEncoding=UTF-8
5+
sonar.sourceEncoding=UTF-8
6+
sonar.projectKey=aquality-automation_aquality-selenium-java

0 commit comments

Comments
 (0)