Kaynağa Gözat

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

vmshay 5 yıl önce
ebeveyn
işleme
3fe97da293
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  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 {