Create a meta folder seperate from other artifacts
This commit is contained in:
parent
b06a9fd8c1
commit
473edb7ad0
1 changed files with 2 additions and 2 deletions
|
|
@ -4,14 +4,14 @@ env.CHECKSUMARTIFACTS = "${metafolder.METAFOLDERNAME}/checksums/**"
|
|||
|
||||
// Generate a checksum file of from a list of files/directories relative to workspace
|
||||
def generatelist(checksummable) {
|
||||
load("${autobuilder.commonscripts()}/platform/lineendings.groovy")
|
||||
sums = ""
|
||||
for (filepath in checksummable) {
|
||||
echo "Checksumming ${filepath}"
|
||||
def files = findFiles(glob: filepath)
|
||||
for (file in files) {
|
||||
def sum = sha1(file: file.path)
|
||||
echo "Sum from file ${file.path} is ${sum}"
|
||||
sums += "${sum}${nl}"
|
||||
sums += "${sum} ${file.path}${nl}" // Format suitable for sha1sum utility
|
||||
}
|
||||
}
|
||||
writeFile(file: "${CHECKSUMFOLDER}/sha1sumlist.txt", text: sums)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue