DEV Community

taijidude
taijidude

Posted on

Supress powershell output

Today i wrestled with a jenkins pipeline file. The jenkinsfile is basicly a groovy script from where you are able executed various other shell scripts and external programs. But if these do output some info onto the shell, you could be running into problems with jenkins.

So i was looking for a way to supress the output from the command line and found out-null.

Piping into out-null supresses the ouput of a command. Example:

Alt Text

Top comments (0)