Essai de chunk pour l’envoi des paquets
Cadoles/Jenkins/pipeline/head There was a failure building this commit Details

This commit is contained in:
Benjamin Bohard 2022-03-10 14:47:33 +01:00
parent 8268ac2a0d
commit fad3f5fdcc
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def exportPackages(
) { ) {
def exportTasks = [] def exportTasks = []
packages.each { 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 def jsonResponse = readJSON text: response.content
exportTasks << jsonResponse['task'] exportTasks << jsonResponse['task']
} }