DEV Community

taijidude
taijidude

Posted on

1

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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay