title: How to consume shared/common groovy methods in context of Jenkins Job DSL Plugin
body: <p>using GroovyConsole I have file main.groovy with:</p>
  
  <pre><code>new Helpers().test("test method called")
  </code></pre>
  
  <p>and in the same dir have file Helpers.groovy with content</p>
  
  <pre><code>def test(String str) {
      println "test method called with: " + str
  }
  </code></pre>
  
  <p>Running results in results:</p>
  
  <pre><code>groovy&gt; new Helpers().test("test method called") 
  
  test method called with: test method called
  </code></pre>
  
  <p>However, in the context of Jenkins using DSL, I have similar code, in file generator.groovy:</p>
  
  <pre><code>new Helpers().test("test method called")
  </code></pre>
  
  <p>then in Helpers.groovy in same dir I have:</p>
  
  <pre><code>def test(String str) {
      println("test method called on: " + str)
  }
  </code></pre>
  
  <p>However when I run I do not get any output (from the println) in the logs.
  If I have my def's in the same main.groovy file instead, it works fine. </p>
  
  <p>Probably missing something fundamental. It's compiling / green in jenkins so not sure how to adapt this, so the runtime will do what I want.</p>