Updating netci.groovy to archive test results on failure.
This commit is contained in:
parent
d088929100
commit
46403a5966
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
// Import the utility functionality.
|
// Import the utility functionality.
|
||||||
|
|
||||||
|
import jobs.generation.ArchivalSettings;
|
||||||
import jobs.generation.Utilities;
|
import jobs.generation.Utilities;
|
||||||
|
|
||||||
def project = GithubProject
|
def project = GithubProject
|
||||||
|
@ -62,6 +63,12 @@ platformList.each { platform ->
|
||||||
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
|
Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
|
||||||
Utilities.addMSTestResults(newJob, '**/*.trx')
|
Utilities.addMSTestResults(newJob, '**/*.trx')
|
||||||
Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} ${architecture} ${configuration} Build")
|
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
|
// Make the call to generate the help job
|
||||||
|
|
Loading…
Add table
Reference in a new issue