|
@@ -1,5 +1,6 @@
|
|
#!groovy
|
|
#!groovy
|
|
def GetLog(url) {
|
|
def GetLog(url) {
|
|
|
|
+ def url = url.replaceAll("http://","")
|
|
withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
|
|
withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
|
|
responce = httpRequest(httpMode: 'GET',
|
|
responce = httpRequest(httpMode: 'GET',
|
|
url: 'http://admin:$TOKEN@$url/consoleText',
|
|
url: 'http://admin:$TOKEN@$url/consoleText',
|