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"
|
rmdir "$dir"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
npx playwright merge-reports --reporter=ortoni-report,junit $(System.DefaultWorkingDirectory)/playwright-reports
|
|
||||||
ls
|
ls
|
||||||
displayName: merge_reports
|
displayName: move_reports
|
||||||
env:
|
|
||||||
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"
|
|
||||||
- bash: |
|
- bash: |
|
||||||
# Create container for jira writeback
|
# Create container for jira writeback
|
||||||
container_id=$(docker create \
|
container_id=$(docker create \
|
||||||
|
|
@ -160,11 +157,13 @@ stages:
|
||||||
-e JIRA_USERNAME=$(JIRA_USERNAME) \
|
-e JIRA_USERNAME=$(JIRA_USERNAME) \
|
||||||
-e JIRA_API_KEY=$(JIRA_API_KEY) \
|
-e JIRA_API_KEY=$(JIRA_API_KEY) \
|
||||||
$(dockerImageName):$(imageTag) \
|
$(dockerImageName):$(imageTag) \
|
||||||
|
npx playwright merge-reports --reporter=ortoni-report,junit $(System.DefaultWorkingDirectory)/playwright-reports &&
|
||||||
chmod +x $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh &&
|
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")
|
$(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh add_comment "$(Build.SourceBranchName)" "AUTOMATED TEST RUN: $(date)" "$(System.DefaultWorkingDirectory)/ortoni-report/index.html")
|
||||||
env:
|
env:
|
||||||
JIRA_API_KEY: $(JIRA_API_KEY)
|
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
|
# TODO: Enable later when working on PR gate
|
||||||
# - task: PublishTestResults@2
|
# - task: PublishTestResults@2
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue