blob: 26e118a9f449be0c1476ee31fcfafe94f7a79f6d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
import jobs.generation.JobReport;
import jobs.generation.Utilities;
import org.dotnet.ci.pipelines.Pipeline
// The input project name (e.g. dotnet/corefx)
def project = GithubProject
// The input branch name (e.g. master)
def branch = GithubBranchName
// **************************
// Define innerloop testing. Any configuration in ForPR will run for every PR but all other configurations
// will have a trigger that can be
// **************************
def perfPipeline = Pipeline.createPipelineForGithub(this, project, branch, 'buildpipeline/perf-pipeline.groovy')
def triggerName = "Perf Build and Test"
def pipeline = perfPipeline
// If we were using parameters for the pipeline job, we would define an array of parameter pairs
// and pass that array as a parameter to the trigger functions. Ie:
// def params = ['CGroup':'Release',
// 'AGroup':'x64',
// 'OGroup':'Windows_NT']
// pipeline.triggerPipelinOnGithubPRComment(triggerName, params)
params = ['XUNIT_PERFORMANCE_MAX_ITERATION':'6',
'XUNIT_PERFORMANCE_MAX_ITERATION_INNER_SPECIFIED':'6']
// Allow PR jobs on request.
pipeline.triggerPipelineOnGithubPRComment(triggerName, params)
// Disable automatic PR runs until throughput issues are addressed.
// pipeline.triggerPipelineOnEveryGithubPR(triggerName, params)
pipeline.triggerPipelinePeriodically('*/12 * * * *', params)
|