paramètre manquant
Cadoles/Jenkins/pipeline/head There was a failure building this commit
Details
Cadoles/Jenkins/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
8b6228fe4a
commit
5db4a47b13
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue