diff --git a/conf/modules.config b/conf/modules.config index 95b8962..9f8a3df 100644 --- a/conf/modules.config +++ b/conf/modules.config @@ -111,10 +111,17 @@ process { time = { 20.minute * task.attempt } stageInMode = 'copy' publishDir = [ - path: "${params.outdir}/trend/pyramid/", - saveAs: { "${it.substring(12,it.indexOf("."))}/trend/${it.substring(0,11)}/$it" }, - pattern: '*.tif*', - mode: params.publish_dir_mode + [ + path: { "${params.outdir}/trend/pyramid/" }, + saveAs: { "${it.substring(12,it.indexOf("."))}/trend/${it.substring(0,11)}/$it" }, + pattern: '*.tif*', + mode: params.publish_dir_mode + ], + [ + path: { "${params.outdir}/trend/pyramid/" }, + pattern: 'versions.yml', + mode: params.publish_dir_mode + ] ] } @@ -122,9 +129,9 @@ process { memory = { 1500.MB * task.attempt } time = { 20.minute * task.attempt } publishDir = [ - path: "${params.outdir}/trend/mosaic/", + path: { "${params.outdir}/trend/mosaic/" }, mode: params.publish_dir_mode, - saveAs: { it.equals('versions.yml') ? null : "${params.outdir}/trend/mosaic/${task.tag}/${it.replaceAll("trend/","")}"} + saveAs: {"${params.outdir}/trend/mosaic/${task.tag}/${it.replaceAll("trend/","")}"} ] }