Add checksum info to meta
This commit is contained in:
parent
eee94ee262
commit
1eaf061731
1 changed files with 8 additions and 5 deletions
|
|
@ -192,7 +192,7 @@ class ChecksumPair extends GISJsonSerialised {
|
|||
private String sum
|
||||
|
||||
ChecksumPair(script, String filepath, String sum) {
|
||||
super(checksumset.script)
|
||||
super(script)
|
||||
this.filepath = filepath
|
||||
this.sum = sum
|
||||
}
|
||||
|
|
@ -210,9 +210,10 @@ class ChecksumSet extends GISJsonSerialised {
|
|||
private String artifactpath
|
||||
private ArrayList<ChecksumPair> checksumpairs
|
||||
|
||||
ChecksumInfo(script, artifactpath) {
|
||||
ChecksumSet(script, artifactpath) {
|
||||
super(script)
|
||||
this.artifactpath = artifactpath
|
||||
checksumpairs = new ArrayList<ChecksumPair>()
|
||||
}
|
||||
|
||||
ChecksumPair addChecksumPair(String filepath, String sum) {
|
||||
|
|
@ -236,17 +237,20 @@ class ChecksumSet extends GISJsonSerialised {
|
|||
]
|
||||
return data
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class ChecksumInfo extends GISJsonSerialised {
|
||||
private ArrayList<ChecksumSet> checksumsets
|
||||
|
||||
ChecksumInfo(script) {
|
||||
super(script)
|
||||
checksumsets = new ArrayList<ChecksumSet>()
|
||||
}
|
||||
|
||||
ChecksumSet addChecksumSet(String artifactpath) {
|
||||
script.echo "Entering addChecksumSet"
|
||||
def cs = new ChecksumSet(script, artifactpath)
|
||||
script.echo "Created ChecksumSet"
|
||||
checksumsets.add(cs)
|
||||
return cs
|
||||
}
|
||||
|
|
@ -339,8 +343,7 @@ class MetaInfo extends GISJsonSerialised {
|
|||
return METAFOLDERNAME
|
||||
}
|
||||
|
||||
String generateartifacts() {
|
||||
def String metafilepath = "${METAFOLDERNAME}/${METAFILENAME}"
|
||||
String generateartifacts(String metafilepath ="${METAFOLDERNAME}/${METAFILENAME}") {
|
||||
saveJsonSerialised(metafilepath)
|
||||
return METAARTIFACTS
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue