diff --git a/vars/uploadTidy.groovy b/vars/uploadTidy.groovy index 4387bcd..077fb57 100644 --- a/vars/uploadTidy.groovy +++ b/vars/uploadTidy.groovy @@ -35,7 +35,8 @@ String metadataGraph = "${datasetGraph}/metadata" drafter.deleteGraph(PMD, credentials, newJobDraft.id, metadataGraph) drafter.deleteGraph(PMD, credentials, newJobDraft.id, datasetGraph) - if (oldLabel != null) { + if (oldLabel) { + echo "Deleting old graphs from label ${oldLabel}" String oldDatasetPath = oldLabel.toLowerCase() .replaceAll('[^\\w/]', '-') .replaceAll('-+', '-')