This commit is contained in:
Chase King 2025-02-25 14:43:05 -05:00
parent 2fe6c33497
commit ff6634f312

View file

@ -157,11 +157,7 @@ stages:
-e JIRA_USERNAME=$(JIRA_USERNAME) \
-e JIRA_API_KEY=$(JIRA_API_KEY) \
$(dockerImageName):$(imageTag) \
npx playwright merge-reports --reporter=ortoni-report,junit $(System.DefaultWorkingDirectory)/playwright-reports &&
ls && # TODO: Debug. Remove later
chmod +x $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh &&
$(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh add_comment "$(Build.SourceBranchName)" "AUTOMATED TEST RUN: $(date)" "$(System.DefaultWorkingDirectory)/ortoni-report/index.html")
/bin/sh "npx playwright merge-reports --reporter=ortoni-report,junit $(System.DefaultWorkingDirectory)/playwright-reports && ls && $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh add_comment \"$(Build.SourceBranchName)\" \"AUTOMATED TEST RUN: $(date)\" \"$(System.DefaultWorkingDirectory)/ortoni-report/index.html\""
# Start container and stream logs
echo "Starting merge"
docker start -a $container_id
@ -169,9 +165,6 @@ stages:
# Remove container
echo "Cleaning up container..."
docker rm $container_id
# TODO: REMOVE Delete all playwright containers
docker rmi $(docker images | grep "playwright-tests")
env:
JIRA_API_KEY: $(JIRA_API_KEY)
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"