Output some debug info.
1 parent 2576a3a commit dd5a57433a3a658eaaa55554867943564503ab44
@Alex Tucker Alex Tucker authored on 15 Oct 2018
Showing 1 changed file
View
4
vars/uploadTidy.groovy
String datasetGraph = "${baseURI}/graph/${datasetPath}"
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('-+', '-')
.replaceAll('-\$', '')