aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-06-27 10:28:45 -0500
committerskooNI <60897865+skooNI@users.noreply.github.com>2022-07-20 15:57:20 -0500
commit538beaadab6cc09573bfad76336fe557ea4a4404 (patch)
tree872d92efa594bfaafcdf8ff7180e3876ad94e5f8
parentf41f050ef89fc977ba5accbaa26b2175f2de4a5e (diff)
downloaduhd-538beaadab6cc09573bfad76336fe557ea4a4404.tar.gz
uhd-538beaadab6cc09573bfad76336fe557ea4a4404.tar.bz2
uhd-538beaadab6cc09573bfad76336fe557ea4a4404.zip
ci: Mark devtest as failure on SucceededWithIssues
This marks the job as a failure on SucceededWithIssues. This could be from failure in device setup or other reasons. Signed-off-by: Steven Koo <steven.koo@ni.com>
-rw-r--r--.ci/templates/job-uhd-devtest.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.ci/templates/job-uhd-devtest.yml b/.ci/templates/job-uhd-devtest.yml
index 24d1985bf..a277167c0 100644
--- a/.ci/templates/job-uhd-devtest.yml
+++ b/.ci/templates/job-uhd-devtest.yml
@@ -184,3 +184,10 @@ jobs:
failTaskOnFailedTests: true
displayName: Upload devtest results
condition: always()
+
+ - 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