diff --git a/vars/pulp.groovy b/vars/pulp.groovy index d7ad162..d73dbd5 100644 --- a/vars/pulp.groovy +++ b/vars/pulp.groovy @@ -8,7 +8,8 @@ def exportPackages( def exportTasks = [] packages.each { def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/content/deb/packages/", httpMode: 'POST', ignoreSslErrors: true, multipartName: "file", timeout: 900, responseHandle: 'NONE', uploadFile: "${it}" - jsonResponse = readJSON text: response.content + println(response) + def jsonResponse = readJSON text: response.content println(jsonResponse) exportTasks << jsonResponse['task'] }