Fixed pipeline
This commit is contained in:
parent
c73029763c
commit
1bea6b2aa5
1 changed files with 12 additions and 11 deletions
|
|
@ -90,7 +90,6 @@ stages:
|
||||||
"npx wait-on http://localhost:8080 && npm run test:playwright -- --shard=$(shardNumber)/$(totalShards) --reporter=list,blob --grep \"@smoke | @Advanced\"")
|
"npx wait-on http://localhost:8080 && npm run test:playwright -- --shard=$(shardNumber)/$(totalShards) --reporter=list,blob --grep \"@smoke | @Advanced\"")
|
||||||
|
|
||||||
# Start container and stream logs
|
# Start container and stream logs
|
||||||
|
|
||||||
echo "Starting tests for shard $(shardNumber)..."
|
echo "Starting tests for shard $(shardNumber)..."
|
||||||
docker start -a $container_id
|
docker start -a $container_id
|
||||||
|
|
||||||
|
|
@ -127,8 +126,6 @@ stages:
|
||||||
condition: always()
|
condition: always()
|
||||||
|
|
||||||
- job: download_and_merge_reports
|
- job: download_and_merge_reports
|
||||||
container:
|
|
||||||
image: mcr.microsoft.com/playwright:v1.48.0-noble
|
|
||||||
dependsOn: playwright_tests
|
dependsOn: playwright_tests
|
||||||
timeoutInMinutes: 8
|
timeoutInMinutes: 8
|
||||||
cancelTimeoutInMinutes: 10
|
cancelTimeoutInMinutes: 10
|
||||||
|
|
@ -195,19 +192,23 @@ stages:
|
||||||
# inputs:
|
# inputs:
|
||||||
# searchFolder: 'test-results'
|
# searchFolder: 'test-results'
|
||||||
# testResultsFormat: 'JUnit'
|
# testResultsFormat: 'JUnit'
|
||||||
# testResultsFiles: 'results.xml'
|
# testResultsFiles: 'junit_results.xml'
|
||||||
# mergeTestResults: true
|
# mergeTestResults: true
|
||||||
# failTaskOnFailedTests: false
|
# failTaskOnFailedTests: false
|
||||||
# testRunTitle: 'Playwright Tests'
|
# testRunTitle: 'Playwright Tests'
|
||||||
# condition: succeededOrFailed()
|
# condition: succeededOrFailed()
|
||||||
|
|
||||||
- task: PublishPipelineArtifact@1
|
- task: PublishPipelineArtifact@1
|
||||||
displayName: 'Publish Merged Report'
|
displayName: 'Publish Merged Report'
|
||||||
condition: always()
|
condition: always()
|
||||||
inputs:
|
inputs:
|
||||||
targetPath: '$(System.DefaultWorkingDirectory)/ortoni-report'
|
targetPath: '$(System.DefaultWorkingDirectory)/ortoni-report'
|
||||||
artifact: 'playwright-merged-report'
|
artifact: 'playwright-merged-report'
|
||||||
publishLocation: 'pipeline'
|
publishLocation: 'pipeline'
|
||||||
|
- script: |
|
||||||
|
docker rmi $(dockerImageName):$(imageTag) -f
|
||||||
|
displayName: 'Cleanup Docker Image'
|
||||||
|
condition: always()
|
||||||
|
|
||||||
- ${{ else }}:
|
- ${{ else }}:
|
||||||
# Dev Build/Deploy
|
# Dev Build/Deploy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue