Relay input meta files to output meta folders

This commit is contained in:
Dan Hawkins 2021-12-11 16:37:06 +00:00
commit e466480d24
2 changed files with 2 additions and 0 deletions

View file

@ -7,6 +7,7 @@ this.JENKINS = Store.JENKINS
this.ARTIFACTSERVER = Store.JENKINS
def archive(meta, artifactlist, Store store = JENKINS ) {
echo "Archiving artifacts to store: ${store}"
meta.copyrelatedmeta()
if (store == JENKINS) {
archiveArtifacts(artifactlist)

View file

@ -797,6 +797,7 @@ class MetaInfo extends GISJsonSerialised {
}
def copyrelatedmeta() {
script.echo("Copying related input meta data to output meta")
for (relatedmetainfo in associatedmeta) {
def srcpath = "${relatedmetainfo.offsetpath}/${METAFOLDERNAME}"
def destpath = "${METAFOLDERNAME}/${relatedmetainfo.offsetpath}"