Add checksum info to meta
This commit is contained in:
parent
2b6378e8e4
commit
084e8367d7
2 changed files with 2 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue