Browse Source

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

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

+ 2 - 1
Jenkins/jenkinsfile

@@ -4,7 +4,8 @@ def GetLog(build_url) {
 	def strip = logurl.replaceAll('http://','')
 	def strip = logurl.replaceAll('http://','')
 
 
     withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
     withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
-    	responce = httpRequest(httpMode: 'GET',
+    	responce = httpRequest(contentType: APPLICATION_JSON, 
+		httpMode: 'GET',
 		url: 'http://admin:' + token +'@' + strip)
 		url: 'http://admin:' + token +'@' + strip)
     return strip
     return strip
 	}
 	}