Pas de tâche pour la création de dépôt
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
5de4dfd4f8
commit
ab34e49bc1
|
@ -24,7 +24,7 @@ def createRepository(
|
|||
def postBody = JsonOutput.toJson(repositoryName)
|
||||
def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/repositories/deb/apt/", httpMode: 'POST', requestBody: postBody, contentType: 'APPLICATION_JSON', ignoreSslErrors: true, validResponseCodes: "100:399"
|
||||
def jsonResponse = readJSON text: response.content
|
||||
return waitForTaskCompletion(credentials, jsonResponse.task)
|
||||
return jsonResponse.pulp_href
|
||||
|
||||
}
|
||||
def getRepositoryHREF(
|
||||
|
@ -44,7 +44,7 @@ def getRepositoryHREF(
|
|||
if (repositoryHREF) {
|
||||
return repositoryHREF.pulp_href
|
||||
} else {
|
||||
return createRepository(credentials, repositoriesMapping[repositoryLevel])[0]
|
||||
return createRepository(credentials, repositoriesMapping[repositoryLevel])
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue