So I have this here:
echo "$(some docker command that gives output)" > file
When I run this from Jenkins, the command’s output is shown in the Jenkins log. I do not want this to happen.
How can I grab the output from the command and silently redirect it to a file?
EDIT: I figured out what the issue was. Was using -ex for bash options without understanding what they were. Removed them and am now receiving expected behavior.