|
@@ -1,9 +1,9 @@
|
|
#!groovy
|
|
#!groovy
|
|
def GetLog(url) {
|
|
def GetLog(url) {
|
|
- def url = url.replaceAll("http://","")
|
|
|
|
|
|
+ def link = 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@$link/consoleText',
|
|
validResponces: '200')
|
|
validResponces: '200')
|
|
return responce
|
|
return responce
|
|
}
|
|
}
|