Is it possible to prevent console log for bat command in jenkinsfile?

1.5k Views Asked by At

I have to prevent the console log in jenkinsfile for bat command. i.e I want to prevent some execution result from bat command

def test = bat(script: command, returnStdout: true).trim()

but it prints the command output in the bat pipeline.

[branch-name] Running batch script
[Pipeline] bat

Some output lines from bat command

Is it possible to prevent this command log in jenkins output?

0

There are 0 best solutions below