This is an automated email from the ASF dual-hosted git repository.

bnolsen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 3a5a91e  factor out match, allow autest<no> (#360)
3a5a91e is described below

commit 3a5a91ebbdd0c2aa7f347acb8dd38819db242c63
Author: Brian Olsen <[email protected]>
AuthorDate: Wed Nov 20 06:03:38 2024 -0700

    factor out match, allow autest<no> (#360)
---
 jenkins/github/github_polling.pipeline | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/jenkins/github/github_polling.pipeline 
b/jenkins/github/github_polling.pipeline
index 0336aa6..5d99e65 100644
--- a/jenkins/github/github_polling.pipeline
+++ b/jenkins/github/github_polling.pipeline
@@ -245,7 +245,9 @@ pipeline {
                                                        if (env.AUTEST_SHARDS) {
                                                                def nshards = 
env.AUTEST_SHARDS as int
 
-                                                               if ((mg = 
GITHUB_PR_COMMENT_BODY_MATCH =~ /autest\W+(\d+)/)) {
+                                                               // extract 
optional shard
+                                                               mg = 
(GITHUB_PR_COMMENT_BODY_MATCH =~ /autest\W*(\d+)/)
+                                                               if (mg) {
                                                                        def 
index = mg.group(1) as int
                                                                        if (0 
<= index && index < nshards) {
                                                                                
String shard = index + "of" + env.AUTEST_SHARDS

Reply via email to