aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.ci/templates/job-uhd-hardware-tests.yml7
-rw-r--r--.ci/templates/job-uhd-streaming-tests.yml6
2 files changed, 13 insertions, 0 deletions
diff --git a/.ci/templates/job-uhd-hardware-tests.yml b/.ci/templates/job-uhd-hardware-tests.yml
index c0c51288b..6f42cb8ef 100644
--- a/.ci/templates/job-uhd-hardware-tests.yml
+++ b/.ci/templates/job-uhd-hardware-tests.yml
@@ -97,3 +97,10 @@ jobs:
mergeTestResults: true
condition: and(succeeded(), eq('${{ parameters.runPyTest }}', true), eq(variables['deviceEnabled'], 'true'))
displayName: Upload pytest results
+
+ - script: |
+ echo "A previous step failed. See steps with warnings."
+ echo "Marking the overall build status as a failure."
+ exit 1
+ condition: in(variables['Agent.JobStatus'], 'SucceededWithIssues')
+ displayName: Mark build as failure \ No newline at end of file
diff --git a/.ci/templates/job-uhd-streaming-tests.yml b/.ci/templates/job-uhd-streaming-tests.yml
index 24d47d59d..bcce368d5 100644
--- a/.ci/templates/job-uhd-streaming-tests.yml
+++ b/.ci/templates/job-uhd-streaming-tests.yml
@@ -212,4 +212,10 @@ jobs:
mergeTestResults: true
failTaskOnFailedTests: false
displayName: Upload streaming test results
+ - script: |
+ echo "A previous step failed. See steps with warnings."
+ echo "Marking the overall build status as a failure."
+ exit 1
+ condition: in(variables['Agent.JobStatus'], 'SucceededWithIssues')
+ displayName: Mark build as failure