From 46403a59665d9fa5f89a94e1635f86d56c667298 Mon Sep 17 00:00:00 2001 From: Tanner Gooding Date: Thu, 17 May 2018 13:29:46 -0700 Subject: [PATCH] Updating netci.groovy to archive test results on failure. --- netci.groovy | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/netci.groovy b/netci.groovy index ca09235d7..c31a81e6b 100644 --- a/netci.groovy +++ b/netci.groovy @@ -3,6 +3,7 @@ // Import the utility functionality. +import jobs.generation.ArchivalSettings; import jobs.generation.Utilities; def project = GithubProject @@ -62,6 +63,12 @@ platformList.each { platform -> Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}") Utilities.addMSTestResults(newJob, '**/*.trx') Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} ${architecture} ${configuration} Build") + + def archiveSettings = new ArchivalSettings() + archiveSettings.addFiles("test/**/*.trx") + archiveSettings.setFailIfNothingArchived() + archiveSettings.setArchiveOnFailure() + Utilities.addArchival(newJob, archiveSettings) } // Make the call to generate the help job