Skip to content

Commit f2e6c3c

Browse files
committed
Trying to make the match a String
1 parent 0dc8245 commit f2e6c3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,8 @@ def resolveBranchName(String featureBranchPRMinusNo, String orgName, String repo
620620
def branchNoMatcher = featureBranchPRMinusNo =~ /PR-(.*)/
621621
assert branchNoMatcher.find()
622622

623-
String prNo = branchNoMatcher.group(1)
624-
log("i", "PR number" + prNo)
623+
String prNo = branchNoMatcher[0][1]
624+
log("i", "PR number: " + prNo + " of class " + prNo.getClass())
625625

626626
// curl the repo based on the feature branch no to get the branch information
627627
/// Note: only works for public repos! Otherwise credentials needs to be passed

0 commit comments

Comments
 (0)