Compare commits

..

2 Commits

Author SHA1 Message Date
Benjamin Bohard 1f6a71e0a9 Revert "Essai de chunk pour l’envoi des paquets"
Cadoles/Jenkins/pipeline/head This commit looks good Details
This reverts commit fad3f5fdcc.
2022-03-10 15:28:12 +01:00
Benjamin Bohard a819b3d9a1 Revert "Erreur de syntaxe"
This reverts commit 4153859453.
2022-03-10 15:28:04 +01:00
1 changed files with 1 additions and 1 deletions

View File

@ -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", customHeaders: [[name: 'Transfer-Encoding', value: 'chunked']], timeout: 900, uploadFile: "${it}"
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 jsonResponse = readJSON text: response.content
exportTasks << jsonResponse['task']
}