小编win*_*.sm的帖子

隐藏命令已执行,仅显示输出

我想在管道中隐藏jenkins sh execute命令

pipeline {
    agent any

    stages {
        stage('Load Lib') {
            steps {
                sh "ls -al /"
            }
        }
    }
}
Run Code Online (Sandbox Code Playgroud)

当前结果:

[Pipeline] {
[Pipeline] stage
[Pipeline] { (Load Lib)
[Pipeline] sh
[Test] Running shell script
+ ls -al /
Run Code Online (Sandbox Code Playgroud)

我想在输出中隐藏Running shell脚本ls -al /命令。

请帮忙

jenkins jenkins-pipeline

8
推荐指数
1
解决办法
1万
查看次数

标签 统计

jenkins ×1

jenkins-pipeline ×1