ajout variable globale
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
7d61382247
commit
60769e3c68
|
@ -7,7 +7,7 @@ def call() {
|
|||
String credentials,
|
||||
String resourceEndpoint,
|
||||
String resourceName,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def response = httpRequest authentication: credentials, url: "https://${pulpHost}/pulp/api/v3/${resourceEndpoint}", httpMode: 'GET', ignoreSslErrors: true, validResponseCodes: "200"
|
||||
def jsonResponse = readJSON text: response.content
|
||||
|
@ -21,7 +21,7 @@ def call() {
|
|||
def waitForTaskCompletion(
|
||||
String credentials,
|
||||
String taskHREF,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def status = ''
|
||||
def created_resources = []
|
||||
|
@ -42,7 +42,7 @@ def call() {
|
|||
def exportPackages(
|
||||
String credentials,
|
||||
List packages = [],
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def exportTasks = []
|
||||
packages.each {
|
||||
|
@ -56,7 +56,7 @@ def call() {
|
|||
def createRepository(
|
||||
String credentials,
|
||||
String name,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def repositoryName = ["name": name]
|
||||
def postBody = JsonOutput.toJson(repositoryName)
|
||||
|
@ -81,7 +81,7 @@ def call() {
|
|||
String credentials,
|
||||
List packagesHREF,
|
||||
String repositoryHREF,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def packagesHREFURL = ["add_content_units": packagesHREF.collect { "https://$pulpHost$it" }]
|
||||
def postBody = JsonOutput.toJson(packagesHREFURL)
|
||||
|
@ -94,7 +94,7 @@ def call() {
|
|||
String credentials,
|
||||
String repositoryHREF,
|
||||
String signing_service = null,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def postContent = ["repository": repositoryHREF, "simple": true]
|
||||
if (signing_service) {
|
||||
|
@ -115,7 +115,7 @@ def call() {
|
|||
String distributionName,
|
||||
String basePath,
|
||||
String contentGuard = null,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def httpMode = ''
|
||||
def url = ''
|
||||
|
@ -148,7 +148,7 @@ def call() {
|
|||
def getDistributionURL(
|
||||
String credentials,
|
||||
String resourceHREF,
|
||||
String pulpHost
|
||||
String pulpHost = ""
|
||||
) {
|
||||
def response = httpRequest authentication: credentials, url: "https://${pulpHost}${resourceHREF}", httpMode: 'GET', ignoreSslErrors: true, validResponseCodes: "200"
|
||||
def jsonResponse = readJSON text: response.content
|
||||
|
|
Loading…
Reference in New Issue