Parcourir la source

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

vmshay il y a 5 ans
Parent
commit
3fe97da293
1 fichiers modifiés avec 3 ajouts et 2 suppressions
  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 {