diff --git a/vars/uploadTidy.groovy b/vars/uploadTidy.groovy index 7ca1c8f..c5ddbef 100644 --- a/vars/uploadTidy.groovy +++ b/vars/uploadTidy.groovy @@ -1,4 +1,7 @@ -def call(csvs, String mapping=null, String datasetPath=util.slugise(env.JOB_NAME)) { +def call(csvs, String mapping=null, String datasetPath=null) { + if (!datasetPath) { + datasetPath = util.slugise(env.JOB_NAME) + } configFileProvider([configFile(fileId: 'pmd', variable: 'configfile')]) { def config = readJSON(text: readFile(file: configfile)) String PMD = config['pmd_api']