瀏覽代碼

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

vmshay 5 年之前
父節點
當前提交
3fe97da293
共有 1 個文件被更改,包括 3 次插入2 次删除
  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 {