Sfoglia il codice sorgente

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

vmshay 5 anni fa
parent
commit
eb910787d9
1 ha cambiato i file con 4 aggiunte e 5 eliminazioni
  1. 4 5
      Jenkins/jenkinsfile

+ 4 - 5
Jenkins/jenkinsfile

@@ -5,10 +5,10 @@ def GetLog(build_url) {
 		def auth = creds.bytes.encodeBase64().toString()
     	responce = httpRequest(httpMode: 'GET',
 		url: build_url + 'consoleText',
-		customHeaders:[[name:'Authorization', value:"Basic ${auth}"]],
-		validResponceCodes: '200')	
+		customHeaders:[[name:'Authorization', value:"Basic ${auth}"]])
+		def test = responce.status
 	}
-	return "PIZDA"
+	return test
 }
 
 def sendMessage(message){
@@ -16,8 +16,7 @@ def sendMessage(message){
 	withCredentials([string(credentialsId: 'TGBot', variable: 'SECRET')]) {
 	responce = httpRequest(contentType: 'APPLICATION_JSON',
 		httpMode: 'GET',
-		url: "https://api.telegram.org/bot$SECRET/sendMessage?text=$encode&chat_id=-1001282104904&disable_web_page_preview=true",
-		validResponceCodes: '200')
+		url: "https://api.telegram.org/bot$SECRET/sendMessage?text=$encode&chat_id=-1001282104904&disable_web_page_preview=true")
 		
 	}
 }