title: Invoking gradle from a jenkinsfile for a jenkins pipeline job
body: <p>I have added the gradle plugin to my jenkins and also configured the "Global tools configuration" to install automatically. When i do a simple "which gradle" from my jenkinsfile, it is not recognised and i get an error "@tmp/durable-30a9c792/script.sh: gradle: not found". </p>