diff options
author | Matt Mitchell <mmitche@microsoft.com> | 2016-09-01 16:10:04 -0700 |
---|---|---|
committer | Matt Mitchell <mmitche@microsoft.com> | 2016-09-01 16:10:04 -0700 |
commit | c9c61a7d775852829f4b9db90755bbe828ab8a92 (patch) | |
tree | a44c10b4e6ed0fac3b0932a566d38f86d98db59e /perf.groovy | |
parent | ad7ae78d67ad3aab90d20df1177b914584a00514 (diff) | |
download | coreclr-c9c61a7d775852829f4b9db90755bbe828ab8a92.tar.gz coreclr-c9c61a7d775852829f4b9db90755bbe828ab8a92.tar.bz2 coreclr-c9c61a7d775852829f4b9db90755bbe828ab8a92.zip |
Changing new perf.groovy triggers to be non-default
Diffstat (limited to 'perf.groovy')
-rw-r--r-- | perf.groovy | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/perf.groovy b/perf.groovy index d9acb610d3..e7100f8de9 100644 --- a/perf.groovy +++ b/perf.groovy @@ -47,11 +47,17 @@ def static getOSGroup(def os) { Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}") if (isPR) { - Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} Perf Tests") // Add a PR trigger. + TriggerBuilder builder = TriggerBuilder.triggerOnPullRequest() + builder.setGithubContext("${os} Perf Tests") + builder.triggerOnlyOnComment() + builder.setCustomTriggerPhrase("(?i).*test\\W+${os}\\W+perf.*") + builder.triggerForBranch(branch) + builder.emitTrigger(newJob) } else { // Set a push trigger - Utilities.addGithubPushTrigger(newJob) + TriggerBuilder builder = TriggerBuilder.triggerOnCommit() + builder.emitTrigger(newJob) } } } @@ -123,11 +129,17 @@ def static getOSGroup(def os) { Utilities.standardJobSetup(newJob, project, isPR, "*/${branch}") if (isPR) { - Utilities.addGithubPRTriggerForBranch(newJob, branch, "${os} Perf Tests") // Add a PR trigger. + TriggerBuilder builder = TriggerBuilder.triggerOnPullRequest() + builder.setGithubContext("${os} Perf Tests") + builder.triggerOnlyOnComment() + builder.setCustomTriggerPhrase("(?i).*test\\W+${os}\\W+perf.*") + builder.triggerForBranch(branch) + builder.emitTrigger(newJob) } else { // Set a push trigger - Utilities.addGithubPushTrigger(newJob) + TriggerBuilder builder = TriggerBuilder.triggerOnCommit() + builder.emitTrigger(newJob) } } // os } // isPR |