Explorar o código

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

vmshay %!s(int64=5) %!d(string=hai) anos
pai
achega
b8f5172fca
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      Jenkins/jenkinsfile

+ 5 - 4
Jenkins/jenkinsfile

@@ -2,10 +2,11 @@
 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')
-    return responce
-	}
+	println(url)
+    //withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
+    //responce = httpRequest(httpMode: 'GET', url: 'http://admin:$TOKEN@$link/consoleText')
+    return url
+	//}
 }
 
 pipeline {