$PATH environment is not correct

in localhost

[[email protected] ~]# echo $PATH
[[email protected] ~]#
[[email protected] ~]# which gradle

but in pipeline

+ echo $PATH
+ which gradle
which: no gradle in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)

i have restarted the drone server and drone exec runner service and also reinstalled.

the exec runner reads the PATH from the environment. If the PATH is incorrect it is because it is not being passed the correct PATH at runtime.