Jenkins管道日志:字符串被分割并且字符被'****'

时间:2018-10-10 12:41:40

标签: jenkins

Jenkins作业(管道)控制台输出遇到问题。
每个单词被分割,每个字符都用'****'包围
示例:

[Pipeline] }
[Pipeline] // stage
[Pipeline] withCredentials
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Prepare workspace)
[Pipeline] sh
****[****R****u****n****n****i****n****g**** ****s****h****e****l****l**** ****s****c****r****i****p****t****

至此,所有日志的格式都如下所示。
我无法弄清楚这种奇怪格式的原因...

Jenkins版本:2.60.2

谢谢您的建议

管道看起来像这样:

node {
def credentialList = []
credentialList.add([$class: 'UsernamePasswordMultiBinding', credentialsId: 'USER_PASSWORD', usernameVariable: 'USER', passwordVariable: 'PASSWORD'])

withCredentials(credentialList) {
  stage("Prepare workspace") {
      def pipScript = '''#!/bin/bash
          ...
          shell instructions
          ...
      '''
      sh pipScript
  }
}

}

0 个答案:

没有答案