浏览代码

Обновить '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
 	}