Explorar o código

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

vmshay %!s(int64=5) %!d(string=hai) anos
pai
achega
46a20898ad
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      Jenkins/jenkinsfile

+ 2 - 1
Jenkins/jenkinsfile

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