title: How do I include an external code file in Jenkins Workflow
body: <p>I'm trying to include external code in my Workflow script but I'm missing something.  The first step seems to work.  If the path is invalid this fails:</p>
  
  <pre><code>evaluate( new File('/home/larry.fast/Wkflo.groovy'))
  </code></pre>
  
  <p>But I've tried a number of syntactic variations on the following and haven't found an incantation that works.  All attempts have produced variants on "unable to resolve class mycode.Wkflo.</p>
  
  <pre><code>def z = mycode.Wkflo()
  </code></pre>
  
  <p>Wkflo.groovy contains:</p>
  
  <pre><code>package mycode;
  def hello() {
    echo "Hello from workflow"
  }
  </code></pre>
  
  <p>I've also tried variations like run(File()) or removing the package declaration.</p>