瀏覽代碼

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

vmshay 5 年之前
父節點
當前提交
373d9dd925
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Jenkins/jenkinsfile

+ 1 - 2
Jenkins/jenkinsfile

@@ -1,11 +1,10 @@
 #!groovy
 def GetLog(build_url) {
-	def strip = build_url.replaceAll('http://','')
     withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
 		def creds = 'admin:' + token
 		def auth = creds.bytes.encodeBase64().toString()
     	responce = httpRequest(httpMode: 'GET',
-		url: 'http://' + strip + 'consoleText',
+		url: build_url + 'consoleText',
 		customHeaders:[[name:'Authorization', value:"Basic ${auth}"]])
     return responce
 	}