Sfoglia il codice sorgente

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

vmshay 5 anni fa
parent
commit
373d9dd925
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  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
 	}