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
}
}
}