paramètre manquant
Cadoles/Jenkins/pipeline/head There was a failure building this commit Details

This commit is contained in:
Benjamin Bohard 2022-02-10 14:27:49 +01:00
parent 8b6228fe4a
commit 5db4a47b13
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,8 @@ import groovy.json.JsonOutput
def getResourceHREF( def getResourceHREF(
String credentials, String credentials,
String resourceEndpoint, 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 response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/${resourceEndpoint}", httpMode: 'GET', ignoreSslErrors: true
def jsonResponse = readJSON text: response.content def jsonResponse = readJSON text: response.content
@ -61,8 +62,7 @@ def createRepository(
} }
def getRepositoryHREF( def getRepositoryHREF(
String credentials, String credentials,
String repository = 'Cadoles4MSE unstable', String repository = 'Cadoles4MSE unstable'
String pulpHost = '192.168.30.3'
) { ) {
def repositoryHREF = getResourceHREF(credentials, 'repositories/deb/apt/', repository) def repositoryHREF = getResourceHREF(credentials, 'repositories/deb/apt/', repository)
if (repositoryHREF) { if (repositoryHREF) {