diff --git a/azure-pipelines-automated-testing.yml b/azure-pipelines-automated-testing.yml index f6536d42..a8fd8ce3 100644 --- a/azure-pipelines-automated-testing.yml +++ b/azure-pipelines-automated-testing.yml @@ -157,12 +157,13 @@ stages: -e JIRA_USERNAME=$(JIRA_USERNAME) \ -e JIRA_API_KEY=$(JIRA_API_KEY) \ $(dockerImageName):$(imageTag) \ - bash -c "for dir in /app/playwright-reports/*/; do + bash -c "echo \"Contents of /app/playwright-reports/:\" && ls /app/playwright-reports/ && echo \"Moving subfolders of playwright-reports...\" + for dir in /app/playwright-reports/*/; do if [ -d "$dir" ]; then mv "$dir"* /app/playwright-reports && rmdir "$dir" fi - done; pwd && ls && ls ./playwright-reports/; npx playwright merge-reports --reporter=ortoni-report,junit ./playwright-reports && ls && ./devops/scripts/jira_writeback.sh add_comment \"$(Build.SourceBranchName)\" \"AUTOMATED TEST RUN: $(date)\" \"./ortoni-report/index.html\"") + done; echo \"Current directory:\" pwd && echo \"Contents of current dir: \" && ls && echo \"Contents of playwright-reports:\" && ls ./playwright-reports/; echo \"Merging reports...\" && npx playwright merge-reports --reporter=ortoni-report,junit ./playwright-reports; ./devops/scripts/jira_writeback.sh add_comment \"$(Build.SourceBranchName)\" \"AUTOMATED TEST RUN: $(date)\" \"./ortoni-report/index.html\"") # Start container and stream logs echo "Starting merge" docker start -a $container_id