title: Execute Shared Libary From FreeStyle Job
body: <p>I have a shared library repository that contains all of my shared functions.</p>
  <p>Is it possible to somehow use this within a freestyle job?</p>
  <p>What I'm trying to accomplish is to create a freestyle job that calls and executes code from the vars folder of my shared library repository.</p>
  <p>Is this possible at all?</p>
  <p>Freestyle jobs have a <strong>Execute Groovy Script</strong> Build Step and I wonder if it might be possible to write a groovy script that calls a function within a global shared library.</p>
  <p>I've tried to call the function using</p>
  <pre><code>GroovyShell shell = new GroovyShell()
  def tools = shell.parse(new File('demoFree.groovy'))
  tools.call()
  </code></pre>
  <p><code>demoFree.groovy</code> being the name of the file that holds the function but my Groovy knowledge is very limited so I'm probably doing something very wrong.</p>
  <p>I know this is easily done using a pipeline project but I'm having to deal with a legacy freestyle project which for a number of reasons isn't being moved to a declarative pipeline just yet.</p>