title: jenkins 2.0 pipline println not working
body: <p>Given this FirstScript.groovy:</p>
  
  <pre><code>class FirstScript implements Serializable{
      def firstFunction() {
          println "This print doesn't work"
          return "This string can be returned and printed"
      }
  }
  
  return new FirstScript()
  </code></pre>
  
  <p>And this pipline code:</p>
  
  <pre><code>node("Slave") {
      checkout scm
      def firstScript = load 'FirstScript.groovy'
      echo firstScript.firstFunction()
  }
  </code></pre>
  
  <p>The only output is "This string can be returned and printed".</p>
  
  <p>This obviously happens because println happens on the slave's output stream and not on the master's, but I need a way to continuously print things from the slave to the master's console log.
  Tried passing System.out from master to slave, had no effect.</p>
  
  <p>Any suggestions?</p>