diff --git a/vars/drafter.groovy b/vars/drafter.groovy index 64b467f..a34e810 100644 --- a/vars/drafter.groovy +++ b/vars/drafter.groovy @@ -14,7 +14,7 @@ def findDraftset(String baseUrl, String, credentials, String displayName) { echo "Finding draftset with display name '${displayName}'" - def draftset = drafter.listDraftsets(baseUrl, credentials, 'owned') + def drafts = drafter.listDraftsets(baseUrl, credentials, 'owned') def draftset = drafts.find { it['display-name'] == displayName } if (draftset) { draftset