Skip to content

Commit fb06a64

Browse files
committed
Update to get rid of deprecated tasks from azure-pipelines.yml for Azure Pipelines
1 parent f6d5a1c commit fb06a64

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

azure-pipelines.yml

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,37 @@ jobs:
99
displayName: Analyse code with SonarQube
1010

1111
steps:
12-
- task: SonarCloudPrepare@1
12+
- task: SonarCloudPrepare@2
1313
displayName: 'Prepare SonarCloud analysis'
1414
inputs:
1515
SonarCloud: 'SonarCloud'
1616
organization: 'aqualityautomation'
1717
scannerMode: 'CLI'
1818
configMode: 'file'
19-
extraProperties: |
20-
sonar.coverage.exclusions=**/**
19+
extraProperties: 'sonar.coverage.exclusions=**/**'
2120

22-
- task: Maven@3
21+
- task: Maven@4
2322
displayName: 'Build project'
2423
inputs:
2524
mavenPomFile: 'pom.xml'
26-
mavenOptions: '-Xmx3072m'
27-
javaHomeOption: 'JDKVersion'
28-
jdkVersionOption: '11'
29-
jdkArchitectureOption: 'x64'
25+
goals: 'clean'
26+
options: '-Xmx3072m'
3027
publishJUnitResults: true
3128
testResultsFiles: '**/surefire-reports/TEST-*.xml'
32-
goals: 'clean'
29+
javaHomeOption: 'JDKVersion'
30+
jdkVersionOption: '1.11'
31+
mavenVersionOption: 'Default'
32+
mavenAuthenticateFeed: false
33+
effectivePomSkip: false
34+
sonarQubeRunAnalysis: false
3335

34-
- task: SonarCloudAnalyze@1
36+
- task: SonarCloudAnalyze@2
37+
inputs:
38+
jdkversion: 'JAVA_HOME'
3539
displayName: 'Run SonarCloud code analysis'
3640
continueOnError: true
3741

38-
- task: SonarCloudPublish@1
42+
- task: SonarCloudPublish@2
3943
displayName: 'Publish SonarCloud quality gate results'
4044
inputs:
4145
pollingTimeoutSec: '300'
@@ -89,14 +93,17 @@ jobs:
8993
inputs:
9094
displaySettings: 'optimal'
9195

92-
- task: Maven@3
96+
- task: Maven@4
9397
displayName: 'Run tests'
9498
inputs:
9599
mavenPomFile: 'pom.xml'
96-
mavenOptions: '-Xmx3072m'
97-
javaHomeOption: 'JDKVersion'
98-
jdkVersionOption: '11'
99-
jdkArchitectureOption: 'x64'
100+
goals: 'clean test -Dprofile=local'
101+
options: '-Xmx3072m'
100102
publishJUnitResults: true
101103
testResultsFiles: '**/surefire-reports/TEST-*.xml'
102-
goals: 'clean test -Dprofile=local'
104+
javaHomeOption: 'JDKVersion'
105+
jdkVersionOption: '1.11'
106+
mavenVersionOption: 'Default'
107+
mavenAuthenticateFeed: false
108+
effectivePomSkip: false
109+
sonarQubeRunAnalysis: false

0 commit comments

Comments
 (0)