diff --git a/vars/drafter.groovy b/vars/drafter.groovy index 701b0f1..c22b7f0 100644 --- a/vars/drafter.groovy +++ b/vars/drafter.groovy @@ -17,7 +17,7 @@ url: "${baseUrl}/v1/draftset/${id}") if (response.status == 202) { def job = readJSON(text: response.content) - drafter.waitForJob( + waitForJob( "${baseUrl}${job['finished-job']}" as String, credentials, job['restart-id'] as String) } else { @@ -61,7 +61,7 @@ value: type]]) if (response.status == 202) { def job = readJSON(text: response.content) - drafter.waitForJob( + waitForJob( "${baseUrl}${job['finished-job']}" as String, credentials, job['restart-id'] as String) } else { @@ -76,7 +76,7 @@ url: "${baseUrl}/v1/draftset/${id}/publish") if (response.status == 202) { def job = readJSON(text: response.content) - drafter.waitForJob( + waitForJob( "${baseUrl}${job['finished-job']}" as String, credentials, job['restart-id'] as String) } else {