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 d25108a change over to regex capture (#358)
d25108a is described below
commit d25108ac964034ebda32fe0d12a1f1879e96987a
Author: Brian Olsen <[email protected]>
AuthorDate: Tue Nov 19 14:06:27 2024 -0700
change over to regex capture (#358)
---
jenkins/github/github_polling.pipeline | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/jenkins/github/github_polling.pipeline
b/jenkins/github/github_polling.pipeline
index bef11f6..3cdccb7 100644
--- a/jenkins/github/github_polling.pipeline
+++ b/jenkins/github/github_polling.pipeline
@@ -245,9 +245,8 @@ pipeline {
if (env.AUTEST_SHARDS) {
def nshards =
env.AUTEST_SHARDS as int
- args_arr =
GITHUB_PR_COMMENT_BODY_MATCH.split(" ").collect{ it.trim() }
- if (1 <
args_arr.length) {
- def
index = args_arr[1] as int
+ if ((mg =
GITHUB_PR_COMMENT_BODY_MATCH.split =~ /autest\W+(\d+)/)) {
+ def
index = mg.group(1) as int
if (0
<= index && index < nshards) {
String shard = index + "of" + env.AUTEST_SHARDS
result = buildJob('AuTest ' + shard, jobpath, shard)