diff --git a/vars/uploadCube.groovy b/vars/uploadCube.groovy index c73ca8a..af66ac4 100644 --- a/vars/uploadCube.groovy +++ b/vars/uploadCube.groovy @@ -4,7 +4,7 @@ String PMD = config['pmd_api'] String credentials = config['credentials'] String PIPELINE = config['pipeline_api'] - def jobDraft = drafts.findDraftset(env.JOB_NAME) + def jobDraft = drafter.findDraftset(PMD, credentials, env.JOB_NAME) if (jobDraft) { drafter.deleteDraftset(PMD, credentials, jobDraft.id as String) } diff --git a/vars/uploadDraftset.groovy b/vars/uploadDraftset.groovy index e1721ff..5406470 100644 --- a/vars/uploadDraftset.groovy +++ b/vars/uploadDraftset.groovy @@ -20,7 +20,7 @@ } mapping = 'metadata/columns.csv' } - def jobDraft = drafts.findDraftset(PMD, credentials, env.JOB_NAME) + def jobDraft = drafter.findDraftset(PMD, credentials, env.JOB_NAME) if (jobDraft) { drafter.deleteDraftset(PMD, credentials, jobDraft.id) } diff --git a/vars/uploadTidy.groovy b/vars/uploadTidy.groovy index 61d3629..e7a42d9 100644 --- a/vars/uploadTidy.groovy +++ b/vars/uploadTidy.groovy @@ -22,7 +22,7 @@ mapping = 'metadata/columns.csv' } - def oldJobDraft = drafter.findDraftset(env.JOB_NAME) + def oldJobDraft = drafter.findDraftset(PMD, credentials, env.JOB_NAME) if (oldJobDraft) { drafter.deleteDraftset(PMD, credentials, oldJobDraft.id) }