Explorar el Código

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

vmshay hace 5 años
padre
commit
572a41c58a
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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
 }