ソースを参照

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

vmshay 5 年 前
コミット
45db30df55
1 ファイル変更4 行追加2 行削除
  1. 4 2
      Jenkins/jenkinsfile

+ 4 - 2
Jenkins/jenkinsfile

@@ -1,11 +1,13 @@
 #!groovy
 def GetLog(build_url) {
-	def logurl = build_url + '/consoleText'
+	def logurl = build_url + 'consoleText'
+	def strip = logurl.replaceAll('http://','')
+
     //withCredentials([string(credentialsId: 'JenkinsApi', variable: 'token')])
     //responce = httprequest(httpMode: 'GET',
     //  url: 'http//admin:token@${BUILD_URL}/consoleText',
     //  validResponces: '200')
-    return logurl
+    return strip
 }
 
 pipeline {