title: Can I import a groovy script from a relative directory into a Jenkinsfile?
body: <p>I've got a project structured like this:</p>
  
  <pre><code>/
  / Jenkinsfile 
  / build_tools /
                / pipeline.groovy # Functions which define the pipeline
                / reporting.groovy # Other misc build reporting stuff
                / dostuff.sh # A shell script used by the pipeline
                / domorestuff.sh # Another pipeline supporting shell-script
  </code></pre>
  
  <p>Is it possible to import the groovy files in /build_tools so that I can use functions inside those 2 files in my Jenkinsfile?</p>
  
  <p>Ideally, I'd like to have a Jenkins file that looks something like this (pseudocode):</p>
  
  <pre><code>from build_tools.pipeline import build_pipeline
  build_pipeline(project_name="my project", reporting_id=12345)
  </code></pre>
  
  <p>The bit I'm stuck on is how you write a working equivalent of that pretend import statement on line #1 of my pseudocode.</p>
  
  <p>PS. Why I'm doing this: The build_tools folder is actually a git submodule shared by many projects. I'm trying to give each project access to a common set of build tooling to stop each project maintainer from reinventing this wheel. </p>