ソースを参照

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

vmshay 5 年 前
コミット
572a41c58a
1 ファイル変更4 行追加1 行削除
  1. 4 1
      Jenkins/jenkinsfile

+ 4 - 1
Jenkins/jenkinsfile

@@ -3,10 +3,13 @@ def GetLog(build_url) {
     withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'token')]){
 		def creds = 'admin:' + token
 		def auth = creds.bytes.encodeBase64().toString()
+
     	responce = httpRequest(httpMode: 'GET',
 		url: build_url + 'consoleText',
-		customHeaders:[[name:'Authorization', value:"Basic ${auth}"]])
+		customHeaders:[[name:'Authorization', value:"Basic ${auth}"]],
+		contentType: 'TEXT_PLAIN')
 		def test = responce.status
+
 	}
 	return test
 }