title: How to test Jenkinsfile
body: <p>I am trying to write the test cases to validate the Jenkinsfile, But the load script function not working expecting the extension to be provided and throwing ResourceException exception <code>loadScript("Jenkinsfile")</code></p>
  
  <p>Is their better way to test the Jenkinsfile </p>