14 lines
No EOL
448 B
Groovy
14 lines
No EOL
448 B
Groovy
|
|
// 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 files = findFiles(glob: filepath)
|
|
for (file in files) {
|
|
def sum = sha1(file: file.path).trim()
|
|
checksumset.addChecksumPair(file.path, sum)
|
|
}
|
|
}
|
|
}
|
|
|
|
return this; |