Procházet zdrojové kódy

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

vmshay před 5 roky
rodič
revize
373d9dd925
1 změnil soubory, kde provedl 1 přidání a 2 odebrání
  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
 	}