title: In Jenkins, Print shell script to both console log and to a file in the same time
body: <p>I have a job in Jenkins with a shell script that I want to save its output to a file and in the same time print to console, is that possible?</p>
  
  <p>The shell script is doing <code>docker login</code> and <code>docker run</code>(this will pull the image too) and I want the output to be saved into a file and also printed in real time (printing the file content later on won't have the same effect)</p>
  
  <p>Can someone assist?</p>