diff --git a/azure-pipelines-automated-testing.yml b/azure-pipelines-automated-testing.yml index ebab438e..b2667ee1 100644 --- a/azure-pipelines-automated-testing.yml +++ b/azure-pipelines-automated-testing.yml @@ -153,6 +153,24 @@ stages: displayName: merge_reports env: 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: | # Create container for jira writeback container_id=$(docker create \ @@ -163,10 +181,7 @@ stages: $(dockerImageName):$(imageTag) \ source $(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 - shell: bash - env: - JIRA_API_KEY: $(JIRA_API_KEY) + # TODO: Enable later when working on PR gate # - task: PublishTestResults@2