Browse Source

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

vmshay 5 years ago
parent
commit
3ecd42c07c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Jenkins/jenkinsfile

+ 2 - 2
Jenkins/jenkinsfile

@@ -1,9 +1,9 @@
 #!groovy
 #!groovy
 def GetLog(url) {
 def GetLog(url) {
-	def url = url.replaceAll("http://","")
+	def link = url.replaceAll("http://","")
     withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
     withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
     responce = httpRequest(httpMode: 'GET',
     responce = httpRequest(httpMode: 'GET',
-      url: 'http://admin:$TOKEN@$url/consoleText',
+      url: 'http://admin:$TOKEN@$link/consoleText',
       validResponces: '200')
       validResponces: '200')
     return responce
     return responce
 	}
 	}