github.com/jaylevin/jenkins-library@v1.230.4/integration/piper-command-wrapper.sh (about)

     1  #!/bin/sh
     2  
     3  # The purpose of this script is to run the binary inside a test container and to ensure its output is stored for assertions
     4  # This is not very elegant, but I have so far not found a better way to save output of a command run via "docker exec"
     5  
     6  "$@" >/tmp/test-log.txt 2>&1