From a819b3d9a114355a8fbe28311a57d97eafd7d766 Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Thu, 10 Mar 2022 15:28:04 +0100 Subject: [PATCH] Revert "Erreur de syntaxe" This reverts commit 4153859453ca4f170da0acceab6a59878f1d2f10. --- vars/pulp.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/pulp.groovy b/vars/pulp.groovy index 3a6963c..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", 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", customHeaders: [[name: 'Transfer-Encoding', value: 'chunked']] timeout: 900, uploadFile: "${it}" def jsonResponse = readJSON text: response.content exportTasks << jsonResponse['task'] }