1 // Import the utility functionality.
3 import jobs.generation.*;
5 def project = GithubProject
6 def branch = GithubBranchName
7 def projectFolder = Utilities.getFolderName(project) + '/' + Utilities.getFolderName(branch)
9 [true, false].each { isPR ->
10 ['Windows_NT'].each { os ->
11 def newJob = job(Utilities.getFullJobName(project, "perf_${os}", isPR)) {
16 batchFile("C:\\tools\\nuget install Microsoft.BenchView.JSONFormat -Source http://benchviewtestfeed.azurewebsites.net/nuget -OutputDirectory C:\\tools -Prerelease")
17 batchFile("python C:\\tools\\Microsoft.BenchView.JSONFormat.0.1.0-pre008\\tools\\machinedata.py")
18 batchFile("set __TestIntermediateDir=int&&build.cmd release x64")
19 batchFile("tests\\runtest.cmd release x64")
20 batchFile("tests\\scripts\\run-xunit-perf.cmd")
24 // Save machinedata.json to /artifact/bin/ Jenkins dir
25 def archiveSettings = new ArchivalSettings()
26 archiveSettings.addFiles('sandbox\\perf-*.xml')
27 archiveSettings.addFiles('machinedata.json')
28 Utilities.addArchival(newJob, archiveSettings)
30 Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}")
32 Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} Perf Tests") // Add a PR trigger.
36 Utilities.addGithubPushTrigger(newJob)