-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazureAutomationPipe.yml
31 lines (28 loc) · 1000 Bytes
/
azureAutomationPipe.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
parameters:
- name: testEnv
type: string
steps:
#Maven Run test
- task: Maven@3
displayName: Run Tests
continueOnError: true
inputs:
mavenPomFile: 'testautomation/pom.xml'
options: 'clean install -Denvironment=${{ parameters.testEnv }} -Dfailsafe.rerunFailingTestsCount=2'
publishJUnitResults: true
testResultsFiles: 'testautomation/target/site/serenity/SERENITY-JUNIT-*.xml'
testRunTitle: 'Automation'
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: true
sqMavenPluginVersionChoice: 'latest'
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: 'testautomation/target/site/serenity/SERENITY-JUNIT-*.xml'
searchFolder: '$(System.DefaultWorkingDirectory)/test-results'
failTaskOnFailedTests: true
displayName: 'Publish Test Results'
condition: always()