Add more difference infrastructure

This commit is contained in:
Dan Hawkins 2019-07-04 13:26:46 +01:00
commit d51458d7b4

View file

@ -116,9 +116,11 @@ def getgitlogdifferences(String gitrootfolder, String earlyrevision, String late
def extractsha(String line) {
def pattern = ~"^(\\p{XDigit}*) (.*)"
def match = (line =~ pattern)
match.find()
def sha = line.replaceFirst(pattern) { _, shabit, therest -> "${shabit}" }
def restofline = line.replaceFirst(pattern) { _, shabit, therest -> "${therest}" }
def sha = match.group(1)
def restofline = match.group(2)
echo "Sha filtering: line: ${line} sha: ${sha} therest: ${restofline}"