summaryrefslogtreecommitdiff
path: root/perf.groovy
diff options
context:
space:
mode:
authorMatt Mitchell <mmitche@microsoft.com>2016-09-01 16:10:04 -0700
committerMatt Mitchell <mmitche@microsoft.com>2016-09-01 16:10:04 -0700
commitc9c61a7d775852829f4b9db90755bbe828ab8a92 (patch)
treea44c10b4e6ed0fac3b0932a566d38f86d98db59e /perf.groovy
parentad7ae78d67ad3aab90d20df1177b914584a00514 (diff)
downloadcoreclr-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.groovy20
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