Format Pipelines

Ensures consistent formatting across YAML files by standardizing quotes.
This improves readability and maintainability of the configuration files.
This commit is contained in:
maguire-arman 2025-05-12 10:51:55 -04:00
parent 7e5de7da3f
commit 70b41a4f17
2 changed files with 191 additions and 191 deletions

View file

@ -1,30 +1,30 @@
trigger: none trigger: none
schedules: schedules:
- cron: 0 9 * * MON-FRI - cron: 0 9 * * MON-FRI
always: true always: true
displayName: Daily Test Automation Run for FMG-NextGen displayName: Daily Test Automation Run for FMG-NextGen
branches: branches:
include: include:
- develop - develop
pool: 'Default' pool: "Default"
variables: variables:
# - group: Digital-Infrastructure # - group: Digital-Infrastructure
# - group: FMG-BuildBranches # - group: FMG-BuildBranches
- name: dockerImageName - name: dockerImageName
value: 'playwright-tests' value: "playwright-tests"
- name: imageTag - name: imageTag
value: '$(Build.BuildId)' value: "$(Build.BuildId)"
- name: totalShards - name: totalShards
value: 4 value: 4
- name: IS_REGRESSION - name: IS_REGRESSION
value: 'true' value: "true"
- name: JIRA_BOARD_ID - name: JIRA_BOARD_ID
value: '845' value: "845"
- name: JIRA_EPIC_KEY - name: JIRA_EPIC_KEY
value: 'CASH-208' value: "CASH-208"
- name: JIRA_PROJECT_KEY - name: JIRA_PROJECT_KEY
value: 'CASH' value: "CASH"
stages: stages:
- stage: TestPr - stage: TestPr
@ -45,13 +45,13 @@ stages:
steps: steps:
- task: Docker@2 - task: Docker@2
displayName: 'Build Docker Image' displayName: "Build Docker Image"
inputs: inputs:
command: build command: build
dockerfile: Dockerfile.playwright dockerfile: Dockerfile.playwright
repository: $(dockerImageName) repository: $(dockerImageName)
tags: $(imageTag) tags: $(imageTag)
arguments: '--no-cache --pull' arguments: "--no-cache --pull"
- script: | - script: |
# Create container and run tests # Create container and run tests
@ -90,19 +90,19 @@ stages:
echo "Tests failed in shard $(shardNumber) or tests don't exist for this shard number!" echo "Tests failed in shard $(shardNumber) or tests don't exist for this shard number!"
exit 0 # Suppress error. It will be visible in report. exit 0 # Suppress error. It will be visible in report.
fi fi
displayName: 'Run Playwright Tests - Shard $(shardNumber)' displayName: "Run Playwright Tests - Shard $(shardNumber)"
- task: PublishPipelineArtifact@1 - task: PublishPipelineArtifact@1
displayName: 'Publish Test Reports - Shard $(shardNumber)' displayName: "Publish Test Reports - Shard $(shardNumber)"
condition: always() condition: always()
inputs: inputs:
targetPath: '$(System.DefaultWorkingDirectory)/blob-reports/shard-$(shardNumber)' targetPath: "$(System.DefaultWorkingDirectory)/blob-reports/shard-$(shardNumber)"
artifact: 'playwright-report-shard-$(shardNumber)' artifact: "playwright-report-shard-$(shardNumber)"
publishLocation: 'pipeline' publishLocation: "pipeline"
- script: | - script: |
docker rmi $(dockerImageName):$(imageTag) -f docker rmi $(dockerImageName):$(imageTag) -f
displayName: 'Cleanup Docker Image' displayName: "Cleanup Docker Image"
condition: always() condition: always()
- job: download_and_merge_reports - job: download_and_merge_reports
@ -112,15 +112,15 @@ stages:
steps: steps:
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
inputs: inputs:
targetPath: '$(System.DefaultWorkingDirectory)/playwright-reports' targetPath: "$(System.DefaultWorkingDirectory)/playwright-reports"
- task: Docker@2 - task: Docker@2
displayName: 'Build Docker Image' displayName: "Build Docker Image"
inputs: inputs:
command: build command: build
dockerfile: Dockerfile.playwright dockerfile: Dockerfile.playwright
repository: $(dockerImageName) repository: $(dockerImageName)
tags: $(imageTag) tags: $(imageTag)
arguments: '--no-cache --pull' arguments: "--no-cache --pull"
- bash: | - bash: |
# Create container for jira writeback # Create container for jira writeback
container_id=$(docker create \ container_id=$(docker create \
@ -164,24 +164,24 @@ stages:
displayName: merge_and_publish_results_to_jira displayName: merge_and_publish_results_to_jira
- task: PublishTestResults@2 - task: PublishTestResults@2
displayName: 'Publish test results' displayName: "Publish test results"
inputs: inputs:
searchFolder: 'test-results' searchFolder: "test-results"
testResultsFormat: 'JUnit' testResultsFormat: "JUnit"
testResultsFiles: 'junit_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: | - script: |
docker rmi $(dockerImageName):$(imageTag) -f docker rmi $(dockerImageName):$(imageTag) -f
displayName: 'Cleanup Docker Image' displayName: "Cleanup Docker Image"
condition: always() condition: always()

View file

@ -37,13 +37,13 @@ variables:
- group: Digital-Infrastructure - group: Digital-Infrastructure
- group: FixMyGlass-BuildBranches - group: FixMyGlass-BuildBranches
- name: dockerImageName - name: dockerImageName
value: 'playwright-tests' value: "playwright-tests"
- name: imageTag - name: imageTag
value: '$(Build.BuildId)' value: "$(Build.BuildId)"
- name: totalShards - name: totalShards
value: 2 value: 2
- name: IS_REGRESSION - name: IS_REGRESSION
value: 'false' value: "false"
stages: stages:
# PR's # PR's
@ -78,13 +78,13 @@ stages:
steps: steps:
- task: Docker@2 - task: Docker@2
displayName: 'Build Docker Image' displayName: "Build Docker Image"
inputs: inputs:
command: build command: build
dockerfile: Dockerfile.playwright dockerfile: Dockerfile.playwright
repository: $(dockerImageName) repository: $(dockerImageName)
tags: $(imageTag) tags: $(imageTag)
arguments: '--no-cache --pull' arguments: "--no-cache --pull"
- script: | - script: |
branch_name=$(System.PullRequest.SourceBranch) branch_name=$(System.PullRequest.SourceBranch)
@ -125,19 +125,19 @@ stages:
echo "Tests failed in shard $(shardNumber) or tests don't exist for this shard number!" echo "Tests failed in shard $(shardNumber) or tests don't exist for this shard number!"
exit 0 # Suppress error. It will be visible in report. exit 0 # Suppress error. It will be visible in report.
fi fi
displayName: 'Run Playwright Tests - Shard $(shardNumber)' displayName: "Run Playwright Tests - Shard $(shardNumber)"
- task: PublishPipelineArtifact@1 - task: PublishPipelineArtifact@1
displayName: 'Publish Test Reports - Shard $(shardNumber)' displayName: "Publish Test Reports - Shard $(shardNumber)"
condition: always() condition: always()
inputs: inputs:
targetPath: '$(System.DefaultWorkingDirectory)/blob-reports/shard-$(shardNumber)' targetPath: "$(System.DefaultWorkingDirectory)/blob-reports/shard-$(shardNumber)"
artifact: 'playwright-report-shard-$(shardNumber)' artifact: "playwright-report-shard-$(shardNumber)"
publishLocation: 'pipeline' publishLocation: "pipeline"
- script: | - script: |
docker rmi $(dockerImageName):$(imageTag) -f docker rmi $(dockerImageName):$(imageTag) -f
displayName: 'Cleanup Docker Image' displayName: "Cleanup Docker Image"
condition: always() condition: always()
# Add job to merge test reports and update Jira # Add job to merge test reports and update Jira
@ -148,15 +148,15 @@ stages:
steps: steps:
- task: DownloadPipelineArtifact@2 - task: DownloadPipelineArtifact@2
inputs: inputs:
targetPath: '$(System.DefaultWorkingDirectory)/playwright-reports' targetPath: "$(System.DefaultWorkingDirectory)/playwright-reports"
- task: Docker@2 - task: Docker@2
displayName: 'Build Docker Image' displayName: "Build Docker Image"
inputs: inputs:
command: build command: build
dockerfile: Dockerfile.playwright dockerfile: Dockerfile.playwright
repository: $(dockerImageName) repository: $(dockerImageName)
tags: $(imageTag) tags: $(imageTag)
arguments: '--no-cache --pull' arguments: "--no-cache --pull"
- bash: | - bash: |
branch_name=$(System.PullRequest.SourceBranch) branch_name=$(System.PullRequest.SourceBranch)
echo "Retrieved branch name: '$branch_name'" echo "Retrieved branch name: '$branch_name'"
@ -204,26 +204,26 @@ stages:
displayName: merge_and_publish_results_to_jira displayName: merge_and_publish_results_to_jira
- task: PublishTestResults@2 - task: PublishTestResults@2
displayName: 'Publish test results' displayName: "Publish test results"
inputs: inputs:
searchFolder: 'test-results' searchFolder: "test-results"
testResultsFormat: 'JUnit' testResultsFormat: "JUnit"
testResultsFiles: 'junit_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: | - script: |
docker rmi $(dockerImageName):$(imageTag) -f docker rmi $(dockerImageName):$(imageTag) -f
displayName: 'Cleanup Docker Image' displayName: "Cleanup Docker Image"
condition: always() condition: always()
- ${{ else }}: - ${{ else }}:
# Dev Build/Deploy # Dev Build/Deploy