From: Drew Scoggins Date: Wed, 3 May 2017 06:55:33 +0000 (-0700) Subject: Fix triggering of perf correctness runs X-Git-Tag: submit/tizen/20210909.063632~11030^2~7041^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa09dcc8289455aa53fff3d853e906804398f605;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix triggering of perf correctness runs When I made the change to have the correctness runs fire in a PR without the trigger phrase I accidentally did it for all PR's not just for the smoketest runs. This change fixes that. Commit migrated from https://github.com/dotnet/coreclr/commit/a9900197ac9b92e164523d6675d1c65015bc8eba --- diff --git a/src/coreclr/perf.groovy b/src/coreclr/perf.groovy index b490219..2d09c31 100644 --- a/src/coreclr/perf.groovy +++ b/src/coreclr/perf.groovy @@ -123,7 +123,16 @@ def static getOSGroup(def os) { if (isPR) { TriggerBuilder builder = TriggerBuilder.triggerOnPullRequest() - builder.setGithubContext("${os} ${arch} CoreCLR Perf Tests") + if (isSmoketest) + { + builder.setGithubContext("${os} ${arch} CoreCLR Perf Tests Correctness") + } + else + { + builder.setGithubContext("${os} ${arch} CoreCLR Perf Tests") + builder.triggerOnlyOnComment() + builder.setCustomTriggerPhrase("(?i).*test\\W+${os}\\W+${arch}\\W+perf.*") + } builder.triggerForBranch(branch) builder.emitTrigger(newJob) }