Attempt #12
This commit is contained in:
parent
d464a04573
commit
0763bc7601
1 changed files with 24 additions and 24 deletions
|
|
@ -166,10 +166,10 @@ stages:
|
|||
docker load -i $(System.DefaultWorkingDirectory)/docker_build/docker_build.tar
|
||||
ls
|
||||
displayName: Load docker image
|
||||
- task: DownloadPipelineArtifact@2
|
||||
- task: DownloadPipelineArtifact@2
|
||||
inputs:
|
||||
targetPath: '$(System.DefaultWorkingDirectory)/playwright-reports'
|
||||
- script: |
|
||||
- script: |
|
||||
npm i ortoni-report &&
|
||||
for dir in $(System.DefaultWorkingDirectory)/playwright-reports/*/; do
|
||||
if [ -d "$dir" ]; then
|
||||
|
|
@ -179,21 +179,21 @@ stages:
|
|||
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"
|
||||
- script: |
|
||||
# Create container for jira writeback
|
||||
container_id=$(docker create \
|
||||
--ipc=host \
|
||||
-e JIRA_SERVER=$(JIRA_SERVER) \
|
||||
-e JIRA_USERNAME=$(JIRA_USERNAME) \
|
||||
-e JIRA_API_KEY=$(JIRA_API_KEY) \
|
||||
-e CI=true \
|
||||
-e NODE_ENV=$(NODE_ENV) \
|
||||
$(dockerImageName):$(imageTag) \
|
||||
. $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh &&
|
||||
add_comment "$(Build.SourceBranchName)" "AUTOMATED TEST RUN: $(date)" "$(System.DefaultWorkingDirectory)/ortoni-report/index.html"
|
||||
displayName: merge_reports
|
||||
env:
|
||||
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"
|
||||
- script: |
|
||||
# Create container for jira writeback
|
||||
container_id=$(docker create \
|
||||
--ipc=host \
|
||||
-e JIRA_SERVER=$(JIRA_SERVER) \
|
||||
-e JIRA_USERNAME=$(JIRA_USERNAME) \
|
||||
-e JIRA_API_KEY=$(JIRA_API_KEY) \
|
||||
-e CI=true \
|
||||
-e NODE_ENV=$(NODE_ENV) \
|
||||
$(dockerImageName):$(imageTag) \
|
||||
. $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh &&
|
||||
add_comment "$(Build.SourceBranchName)" "AUTOMATED TEST RUN: $(date)" "$(System.DefaultWorkingDirectory)/ortoni-report/index.html"
|
||||
displayName: publish_results_to_jira
|
||||
env:
|
||||
JIRA_API_KEY: $(JIRA_API_KEY)
|
||||
|
|
@ -210,13 +210,13 @@ stages:
|
|||
# testRunTitle: 'Playwright Tests'
|
||||
# condition: succeededOrFailed()
|
||||
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'Publish Merged Report'
|
||||
condition: always()
|
||||
inputs:
|
||||
targetPath: '$(System.DefaultWorkingDirectory)/ortoni-report'
|
||||
artifact: 'playwright-merged-report'
|
||||
publishLocation: 'pipeline'
|
||||
- task: PublishPipelineArtifact@1
|
||||
displayName: 'Publish Merged Report'
|
||||
condition: always()
|
||||
inputs:
|
||||
targetPath: '$(System.DefaultWorkingDirectory)/ortoni-report'
|
||||
artifact: 'playwright-merged-report'
|
||||
publishLocation: 'pipeline'
|
||||
|
||||
- ${{ else }}:
|
||||
# Dev Build/Deploy
|
||||
|
|
|
|||
Loading…
Reference in a new issue