Explorar o código

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

vmshay %!s(int64=5) %!d(string=hai) anos
pai
achega
3fe97da293
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      Jenkins/jenkinsfile

+ 3 - 2
Jenkins/jenkinsfile

@@ -1,10 +1,11 @@
 #!groovy
 def GetLog() {
-    withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')])
+    withCredentials([string(credentialsId: 'JenkinsAPI', variable: 'TOKEN')]){
     responce = httprequest(httpMode: 'GET',
-      url: 'http//admin:QWEasd123@${BUILD_URL}/consoleText',
+      url: 'http//admin:$TOKEN@${BUILD_URL}/consoleText',
       validResponces: '200')
     return responce
+	}
 }
 
 pipeline {