|
@@ -1,11 +1,10 @@
|
|
|
#!groovy
|
|
|
def GetLog(build_url) {
|
|
|
- def strip = build_url.replaceAll('http://','')
|
|
|
withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
|
|
|
def creds = 'admin:' + token
|
|
|
def auth = creds.bytes.encodeBase64().toString()
|
|
|
responce = httpRequest(httpMode: 'GET',
|
|
|
- url: 'http://' + strip + 'consoleText',
|
|
|
+ url: build_url + 'consoleText',
|
|
|
customHeaders:[[name:'Authorization', value:"Basic ${auth}"]])
|
|
|
return responce
|
|
|
}
|