فهرست منبع

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

vmshay 5 سال پیش
والد
کامیت
46a20898ad
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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
 	}