title: Why won't groovy run in Jenkins pipeline?
body: <p>I am currently trying to run a groovy script from my pipeline as one of my nodes, but I ran into this error:</p>
  
  <pre><code>[CompanyName] Running shell script
  + ./ideainspect.groovy
  env: groovy: No such file or directory
  </code></pre>
  
  <p>Also, I tried installing the plugin for groovy, but for some reason, it won't install. Whenever I refresh the page for tools, the installer goes away. Am I installing groovy wrong? Please help!</p>
  
  <p>Edit: Relevant Data</p>
  
  <pre><code>stage 'Static Analysis'
  node {
      dir("Android/btMobileApp") {
          sh "./ideainspect.groovy"
          sh "./gradlew checkstyle lintDebug"
      }
  }
  </code></pre>
  
  <p>And the ideainspect.groovy file is an executable with the shebang <code>#!/usr/bin/env groovy</code>, which could be the problem.</p>