Sonar-scanner command not found jenkins

Can you try ls'ing $scannerHome, to see what’s in there?

withSonarQubeEnv() {
  sh "ls ${scannerHome}"
  sh "echo ${scannerHome}"
}