|
@@ -2,11 +2,11 @@
|
|
def GetLog(url) {
|
|
def GetLog(url) {
|
|
def link = url.replaceAll("http://","")
|
|
def link = url.replaceAll("http://","")
|
|
println(link)
|
|
println(link)
|
|
- withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
|
|
|
|
- responce = httpRequest(httpMode: 'GET',
|
|
|
|
- url: 'http://admin:$TOKEN@$link/consoleText',
|
|
|
|
- validResponceCodes: '200')
|
|
|
|
- return responce
|
|
|
|
|
|
+ //withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
|
|
|
|
+ //responce = httpRequest(httpMode: 'GET',
|
|
|
|
+ //url: 'http://admin:$TOKEN@$link/consoleText',
|
|
|
|
+ //validResponceCodes: '200')
|
|
|
|
+ return link
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|