|
@@ -1,9 +1,8 @@
|
|
|
#!groovy
|
|
|
-def GetLog(url) {
|
|
|
- def encode = URLEncoder.encode(url,"UTF-8")
|
|
|
+def GetLog() {
|
|
|
withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
|
|
|
responce = httpRequest(httpMode: 'GET',
|
|
|
- url: 'http://admin:$TOKEN@192.168.10.14:8080/$url',
|
|
|
+ url: 'http://admin:$TOKEN@192.168.10.14:8080/job/ScheduleServer/job/master/22/consoleText',
|
|
|
validResponces: '200')
|
|
|
return responce
|
|
|
}
|
|
@@ -38,7 +37,7 @@ pipeline {
|
|
|
}
|
|
|
failure {
|
|
|
echo 'I failed :((('
|
|
|
- echo GetLog("${BUILD_URL}"/consoleText)
|
|
|
+ echo GetLog()
|
|
|
}
|
|
|
changed {
|
|
|
echo 'things were different before...'
|