summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Galbraith <pjgalbraith@hotmail.com>2019-01-23 06:35:45 +0000
committerPatrick Galbraith <pjgalbraith@hotmail.com>2019-01-23 06:35:45 +0000
commitdbbe36ef1b7ea8e415c97ddc6c271f83d9d85364 (patch)
tree432d3c60b16d9d7578618643005f85cf887f5bbe
parent3b10de4b5146d9f7d96194cfc70d3c9be2d53055 (diff)
downloadgitlab-ce-dbbe36ef1b7ea8e415c97ddc6c271f83d9d85364.tar.gz
Update dotNet test task to upload test results on failure
-rw-r--r--lib/gitlab/ci/templates/dotNET.gitlab-ci.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/ci/templates/dotNET.gitlab-ci.yml b/lib/gitlab/ci/templates/dotNET.gitlab-ci.yml
index fc3d4ecdbba..25a32ba0f74 100644
--- a/lib/gitlab/ci/templates/dotNET.gitlab-ci.yml
+++ b/lib/gitlab/ci/templates/dotNET.gitlab-ci.yml
@@ -57,6 +57,7 @@ test_job:
script:
- '& "$env:NUNIT_PATH" ".\$env:TEST_FOLDER\Tests.dll"' # running NUnit tests
artifacts:
+ when: always # save test results even when the task fails
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
- '.\TestResult.xml' # saving NUnit results to copy to deploy folder