As of 1.26, it doesn't look like the Gradle plugin is setting PATH+GRADLE, so it's not getting added to the PATH automatically by the tool step (or in Declarative when you specify Gradle in the tools directive, which uses tool behind the scenes anyway). That should be fixed.

          [JENKINS-42381] GradleInstallation not setting PATH+GRADLE

          Andrew Bayer created issue -
          Andrew Bayer made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Andrew Bayer made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Andrew Bayer made changes -
          Remote Link New: This issue links to "PR #42 (Web Link)" [ 15504 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-28718 [ JENKINS-28718 ]
          Jesse Glick made changes -
          Labels New: declarative pipeline
          Andrew Bayer made changes -
          Issue Type Original: Bug [ 1 ] New: Improvement [ 4 ]
          Stefan Wolf made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          Stefan Wolf made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            abayer Andrew Bayer
            abayer Andrew Bayer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: