title: Read file in Jenkins and add lines to environment varibles
body: <p>I am pretty new to jenkins and UNIX commands. How can I via shell command read txt file line by line and add it to environment variables?
  My goal is to read generated text file and then send its content via mail, for that I've downloaded mail plugin.</p>