|
@@ -3,10 +3,13 @@ def GetLog(build_url) {
|
|
|
withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
|
|
|
def creds = 'admin:' + token
|
|
|
def auth = creds.bytes.encodeBase64().toString()
|
|
|
+
|
|
|
responce = httpRequest(httpMode: 'GET',
|
|
|
url: build_url + 'consoleText',
|
|
|
- customHeaders:[[name:'Authorization', value:"Basic ${auth}"]])
|
|
|
+ customHeaders:[[name:'Authorization', value:"Basic ${auth}"]],
|
|
|
+ contentType: 'TEXT_PLAIN')
|
|
|
def test = responce.status
|
|
|
+
|
|
|
}
|
|
|
return test
|
|
|
}
|