Attempt #19
This commit is contained in:
parent
8635a5f1cf
commit
4efd3c15f1
1 changed files with 19 additions and 4 deletions
|
|
@ -153,6 +153,24 @@ stages:
|
||||||
displayName: merge_reports
|
displayName: merge_reports
|
||||||
env:
|
env:
|
||||||
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"
|
PLAYWRIGHT_JUNIT_OUTPUT_FILE: "test-results/results.xml"
|
||||||
|
- task: Bash@3
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
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) \
|
||||||
|
$(dockerImageName):$(imageTag) \
|
||||||
|
source $(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
|
||||||
|
|
||||||
|
echo 'Hello world'
|
||||||
- script: |
|
- script: |
|
||||||
# Create container for jira writeback
|
# Create container for jira writeback
|
||||||
container_id=$(docker create \
|
container_id=$(docker create \
|
||||||
|
|
@ -163,10 +181,7 @@ stages:
|
||||||
$(dockerImageName):$(imageTag) \
|
$(dockerImageName):$(imageTag) \
|
||||||
source $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh &&
|
source $(System.DefaultWorkingDirectory)/devops/scripts/jira_writeback.sh &&
|
||||||
add_comment "$(Build.SourceBranchName)" "AUTOMATED TEST RUN: $(date)" "$(System.DefaultWorkingDirectory)/ortoni-report/index.html")
|
add_comment "$(Build.SourceBranchName)" "AUTOMATED TEST RUN: $(date)" "$(System.DefaultWorkingDirectory)/ortoni-report/index.html")
|
||||||
displayName: publish_results_to_jira
|
|
||||||
shell: bash
|
|
||||||
env:
|
|
||||||
JIRA_API_KEY: $(JIRA_API_KEY)
|
|
||||||
|
|
||||||
# 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