|
@@ -4,8 +4,7 @@ def GetLog(build_url) {
|
|
|
withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
|
|
|
def creds = 'admin:' + token
|
|
|
def auth = creds.bytes.encodeBase64().toString()
|
|
|
- responce = httpRequest(contentType: 'APPLICATION_JSON',
|
|
|
- httpMode: 'GET',
|
|
|
+ responce = httpRequest(httpMode: 'GET',
|
|
|
url: 'http://' + strip + 'consoleText',
|
|
|
customHeaders:[[name:'Authorization', value:"Basic ${auth}"]])
|
|
|
return responce
|