I am trying to set up scanning of my GitHub repository on push and PR using Jenkins. Everything seems to be set up according to the instructions that popped up in SonarQube after I created a project from GitHub repo.
Jenkins build step “SonarQube Analysis” keeps failing and there is nothing logged from the console. I also noticed there is nothing new in the SonarQube logs. Is there something I missed? Can you please suggest what might me wrong?
I’ve attached my Jenkins file for reference. Jenkinsfile.txt (205 Bytes)
there is absolutely nothing in the sonarqube and elasticsearch logs.
My code is a little different from your docs. I followed in instructions in SonarQube. Screenshots attached below. Is something missing in the instructions?
/var/lib/jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/SonarCube_Scanner/bin/sonar-scanner
Could not find 'java' executable in JAVA_HOME or PATH.
I have Java JRE and JDK installed on the system. I restarted Jenkins just in case it needed to pick up the JAVA_HOME variable from the system, but there’s no change.