Add more difference infrastructure
This commit is contained in:
parent
90ed5663c6
commit
d51458d7b4
1 changed files with 4 additions and 2 deletions
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue