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