I am using Jenkinsfile for pipeline scripting.
Is there a way to disable the printing of shell commands in assembly logs?
Here is just a simple jenkins project example:
node{ stage ("Example") { sh('echo shellscript.sh arg1 arg2') sh('echo shellscript.sh arg3 arg4') } }
which produces the following output in the console log:
[Pipeline] node Running on master in /var/lib/jenkins/workspace/testpipeline [Pipeline] { [Pipeline] stage [Pipeline] { (Test) [Pipeline] sh [testpipeline] Running shell script + echo shellscript.sh arg1 arg2 shellscript.sh arg1 arg2 [Pipeline] sh [testpipeline] Running shell script + echo shellscript.sh arg3 arg4 shellscript.sh arg3 arg4 [Pipeline] } [Pipeline]
Basically, I would like to disable printing of the commands themselves.
+ echo shellscript.sh arg1 arg2 + echo shellscript.sh arg3 arg4
source share