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