瀏覽代碼

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

vmshay 5 年之前
父節點
當前提交
58341e3a39
共有 1 個文件被更改,包括 4 次插入6 次删除
  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 {