Browse Source

Обновить 'Jenkins/jenkinsfile'

vmshay 5 years ago
parent
commit
58341e3a39
1 changed files with 4 additions and 6 deletions
  1. 4 6
      Jenkins/jenkinsfile

+ 4 - 6
Jenkins/jenkinsfile

@@ -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 {