Correction du code de retour d’une requête POST
Some checks failed
Cadoles/Jenkins/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/Jenkins/pipeline/head There was a failure building this commit
This commit is contained in:
parent
97abfb0ade
commit
71f5fbfe78
@ -57,7 +57,7 @@ def createRepository(
|
|||||||
) {
|
) {
|
||||||
def repositoryName = ["name": name]
|
def repositoryName = ["name": name]
|
||||||
def postBody = JsonOutput.toJson(repositoryName)
|
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: "202"
|
def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/repositories/deb/apt/", httpMode: 'POST', requestBody: postBody, contentType: 'APPLICATION_JSON', ignoreSslErrors: true, validResponseCodes: "201"
|
||||||
def jsonResponse = readJSON text: response.content
|
def jsonResponse = readJSON text: response.content
|
||||||
return jsonResponse.pulp_href
|
return jsonResponse.pulp_href
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user