diff --git a/netci.groovy b/netci.groovy index 68d68d831ecff..6fee0685cd284 100644 --- a/netci.groovy +++ b/netci.groovy @@ -38,7 +38,7 @@ static void addRoslynJob(def myJob, String jobName, String branchName, Boolean i if (triggerPhraseExtra) { triggerCore = "${triggerCore}|${triggerPhraseExtra}" } - def triggerPhrase = "(?i)^\\s*(@?dotnet-bot\\,?\\s+)?(re)?test\\s+(${triggerCore})(\\s+please\\.?)?\\s*\$"; + def triggerPhrase = "(?im)^\\s*(@?dotnet-bot\\,?\\s+)?(re)?test\\s+(${triggerCore})(\\s+please\\.?)?\\s*\$"; def contextName = jobName Utilities.addGithubPRTriggerForBranch(myJob, branchName, contextName, triggerPhrase, triggerPhraseOnly) } else { diff --git a/perf.groovy b/perf.groovy index 42ddb0f3069c1..83fe7307e892f 100644 --- a/perf.groovy +++ b/perf.groovy @@ -43,7 +43,7 @@ def generate(boolean isPr) { TriggerBuilder prTrigger = TriggerBuilder.triggerOnPullRequest() prTrigger.permitOrg('Microsoft') prTrigger.permitOrg('dotnet') - prTrigger.setCustomTriggerPhrase("(?i)^\\s*(@dotnet-bot\\s+)?(re)?test\\s+perf(\\s+please)?\\s*\$" ) + prTrigger.setCustomTriggerPhrase("(?im)^\\s*(@dotnet-bot\\s+)?(re)?test\\s+perf(\\s+please)?\\s*\$" ) prTrigger.triggerForBranch(branchName); prTrigger.setGithubContext('Performance Test Run') prTrigger.emitTrigger(myJob)