Gradle: command not found

I am completely new to sonarqube & posted number of questions related to sonarqube in this community and everything was resolved from you end .
Great thanks for that !

Now I am stuck with gradle , When i run the sonarscanner pipeline I am getting the below error .
image

It issure i am missing some thing .
gradle config in my repo
build.gradle
image

gradle.properties
image

Anything additional to be added or configured ?
Kindly help me to solve this issue

Hi,

Have you installed Gradle on the build agent? Here’s an SO answer I found when I Googled the error message.

 
HTH,
Ann

Hi ,
Yes gradle installed in gitlab runner machine


Any thing else need to be configured ?

Hi,

It appears that Gradle is in your $PATH. Is it in the path for the bash script? It would be interesting to add that same gradle -v command at the start of your script…

 
Ann

Hi ,
I am not sure are you talking this .
image

let me know where should i add gradle -v

Hi,

Gradle is clearly in the environment you have when you log in. My guess is that it’s not in the environment for the build script. I’m asking to you test/confirm whether or not it is.

But… let’s back up. Why are you analyzing with Gradle? How do you build? If you’re already building with Gradle, then you should run the SonarQube Gradle task the same way you do the build.

 
Ann

Let me check and get back to you .
Thanks