Sonar scan failed with exit status 128

For sonar scan build failed with exit status 128. Its java code using gradle build.

Run scanning job

TASK_URL=$(./gradlew -d sonar -Dsonar.branch.name=$CIRCLE_BRANCH -Dsonar.branch.target=$CIRCLE__TARGET_BRANCH | tee out | grep -Eo ‘http./api/ce/task.’)

===========================================
Could you help in this?

Please help, what caused the error exit status 128.

:wave: I suspect this has something to do with the working directory of the command, since it can’t seem to find the git repository. Rerunning the job with SSH (https://circleci.com/docs/2.0/ssh-access-jobs/) and running the commands manually should give a better idea of the behaviour. Is this from a Sonar Orb, or is this part of a manually written configuration @apg3727?

The above config need change in working directory ?