|
@@ -3,11 +3,11 @@ def GetLog(build_url) {
|
|
def logurl = build_url + 'consoleText'
|
|
def logurl = build_url + 'consoleText'
|
|
def strip = logurl.replaceAll('http://','')
|
|
def strip = logurl.replaceAll('http://','')
|
|
|
|
|
|
- //withCredentials([string(credentialsId: 'JenkinsApi', variable: 'token')])
|
|
|
|
- //responce = httprequest(httpMode: 'GET',
|
|
|
|
- // url: 'http//admin:token@${BUILD_URL}/consoleText',
|
|
|
|
- // validResponces: '200')
|
|
|
|
|
|
+ withCredentials([string(credentialsId: 'JenkinsApi', variable: 'token')]){
|
|
|
|
+ responce = httprequest(httpMode: 'GET',
|
|
|
|
+ url: 'http//admin:token@strip)
|
|
return strip
|
|
return strip
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
pipeline {
|
|
pipeline {
|