Add more difference infrastructure

This commit is contained in:
Dan Hawkins 2019-07-04 22:14:50 +01:00
commit 1f6b1f8aae

View file

@ -173,7 +173,7 @@ def extractjiraticketinfo(String line) {
boolean amatch = false
while (!amatch) {
line = line.trim()
def pattern1 = '^(\w+-\d+)(.*)' //GIS-1234 hmbxr5601-1234
def pattern1 = '^(\\w+-\\d+)(.*)' //GIS-1234 hmbxr5601-1234
def match1 = (line =~ pattern1)
if (match1.find()) {
jiraticket = match1.group(1)
@ -181,7 +181,7 @@ def extractjiraticketinfo(String line) {
line = match1.group(2)
amatch = true
} else {
def pattern2 = '^(\w+\d+)(.*)' //GIS1234 smb1234
def pattern2 = '^(\\w+\\d+)(.*)' //GIS1234 smb1234
def match2 = (line =~ pattern2)
if (match2.find()) {
jiraticket = match2.group(1)
@ -189,7 +189,7 @@ def extractjiraticketinfo(String line) {
line = match2.group(2)
amatch = true
} else {
def pattern3 = '^(\w+ \d+)(.*)' //GIS 1234 smb 1234
def pattern3 = '^(\\w+ \\d+)(.*)' //GIS 1234 smb 1234
def match3 = (line =~ pattern3)
if (match3.find()) {
jiraticket = match3.group(1)