Add checksum info to meta

This commit is contained in:
Dan Hawkins 2018-11-22 18:40:12 +00:00
commit e7fb9a8805
2 changed files with 2 additions and 4 deletions

View file

@ -2,7 +2,7 @@
// Generate a checksum file of from a list of files/directories relative to workspace
def generatelist(meta, checksummable) {
for (filepath in checksummable) {
def checksumset = meta.checksuminfo.addchecksumset(filepath)
def checksumset = meta.checksuminfo.addChecksumSet(filepath)
def files = findFiles(glob: filepath)
for (file in files) {
def sum = sha1(file: file.path).trim()
@ -11,4 +11,4 @@ def generatelist(meta, checksummable) {
}
}
return this;
return this;

View file

@ -248,9 +248,7 @@ class ChecksumInfo extends GISJsonSerialised {
}
ChecksumSet addChecksumSet(String artifactpath) {
script.echo "Entering addChecksumSet"
def cs = new ChecksumSet(script, artifactpath)
script.echo "Created ChecksumSet"
checksumsets.add(cs)
return cs
}