소스 검색

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

vmshay 5 년 전
부모
커밋
dd55d241ed
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      Jenkins/jenkinsfile

+ 4 - 4
Jenkins/jenkinsfile

@@ -3,11 +3,11 @@ def GetLog(build_url) {
 	def logurl = build_url + 'consoleText'
 	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
+	}
 }
 
 pipeline {