Changed position of commands
This commit is contained in:
parent
298ede9950
commit
b23cc69da1
1 changed files with 4 additions and 5 deletions
|
|
@ -147,11 +147,8 @@ stages:
|
|||
rmdir "$dir"
|
||||
fi
|
||||
done
|
||||
npx playwright merge-reports --reporter=ortoni-report,junit $(System.DefaultWorkingDirectory)/playwright-reports
|
||||
ls
|
||||
displayName: merge_reports
|
||||
env:
|
||||
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"
|
||||
displayName: move_reports
|
||||
- bash: |
|
||||
# Create container for jira writeback
|
||||
container_id=$(docker create \
|
||||
|
|
@ -160,11 +157,13 @@ 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 &&
|
||||
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")
|
||||
env:
|
||||
JIRA_API_KEY: $(JIRA_API_KEY)
|
||||
displayName: publish_results_to_jira
|
||||
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"
|
||||
displayName: merge_and_publish_results_to_jira
|
||||
|
||||
# TODO: Enable later when working on PR gate
|
||||
# - task: PublishTestResults@2
|
||||
|
|
|
|||
Loading…
Reference in a new issue