From 5db4a47b13bc996fd53681561b52c08468da2e8a Mon Sep 17 00:00:00 2001 From: Benjamin Bohard Date: Thu, 10 Feb 2022 14:27:49 +0100 Subject: [PATCH] =?UTF-8?q?param=C3=A8tre=20manquant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vars/pulp.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vars/pulp.groovy b/vars/pulp.groovy index 98cd67f..d515fcd 100644 --- a/vars/pulp.groovy +++ b/vars/pulp.groovy @@ -3,7 +3,8 @@ import groovy.json.JsonOutput def getResourceHREF( String credentials, String resourceEndpoint, - String resourceName + String resourceName, + String pulpHost = '192.168.30.3' ) { def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/${resourceEndpoint}", httpMode: 'GET', ignoreSslErrors: true def jsonResponse = readJSON text: response.content @@ -61,8 +62,7 @@ def createRepository( } def getRepositoryHREF( String credentials, - String repository = 'Cadoles4MSE unstable', - String pulpHost = '192.168.30.3' + String repository = 'Cadoles4MSE unstable' ) { def repositoryHREF = getResourceHREF(credentials, 'repositories/deb/apt/', repository) if (repositoryHREF) {