diff --git a/vars/pulp.groovy b/vars/pulp.groovy index 98c65ad..663490b 100644 --- a/vars/pulp.groovy +++ b/vars/pulp.groovy @@ -41,7 +41,7 @@ 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, uploadFile: "${it}" + def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/content/deb/packages/", httpMode: 'POST', ignoreSslErrors: true, multipartName: "file", customHeaders: [[name: 'Transfer-Encoding', value: 'chunked']] timeout: 900, uploadFile: "${it}" def jsonResponse = readJSON text: response.content exportTasks << jsonResponse['task'] }