sonarScanner not found

  • which versions are you using
    (SonarQube 6.7.3
  • what are you trying to achieve : Execute sonarScanner on a linux jenkins slave
  • what have you tried so far to achieve this
    setup sonarQube server in jenkins
    Setup global tools in global tools in jenkins

    execute a jenkins job

we get this error:

Building remotely on autogen_build-d001-rhel7-x64-v (linux autogen rhel7) in workspace <<redacted_workspace_path>>/workspace/DEV/atv-autogen-sonarqube2
using credential 2820218c-2c82-4ede-8c20-b3ec52682ea1
/opt/dsard/git/2.8.1/bin/git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
/opt/dsard/git/2.8.1/bin/git config remote.origin.url https://bitbucket<redacted_URL>/scm/v93keco/autogen.git # timeout=10
Fetching upstream changes from https://bitbucket<redacted_URL>/scm/v93keco/autogen.git
/opt/dsard/git/2.8.1/bin/git --version # timeout=10
using GIT_ASKPASS to set credentials <redacted_username> windows username and password
/opt/dsard/git/2.8.1/bin/git fetch --tags --progress -- https://bitbucket<redacted_URL>/scm/v93keco/autogen.git +refs/heads/*:refs/remotes/origin/*
/opt/dsard/git/2.8.1/bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
/opt/dsard/git/2.8.1/bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision a723363e779270232e3cb114022a687a5e7aec27 (refs/remotes/origin/master)
/opt/dsard/git/2.8.1/bin/git config core.sparsecheckout # timeout=10
/opt/dsard/git/2.8.1/bin/git checkout -f a723363e779270232e3cb114022a687a5e7aec27
Commit message: "Order list of source files alphabetically"
/opt/dsard/git/2.8.1/bin/git rev-list --no-walk a723363e779270232e3cb114022a687a5e7aec27 # timeout=10
Unpacking **https://artifactory<redacted_downloadLocation>/SonarQube/ClientUtilities/SonarScanner/ to <<redacted_workspace_path>>/tools/hudson.plugins.sonar.SonarRunnerInstallation/sonar-scanner- on autogen_build-d001-rhel7-x64-v**
FATAL: SonarQube runner executable was not found for sonar-scanner-
Build step 'Invoke Standalone SonarQube Analysis' marked build as failure
Finished: FAILURE

Any Idea why?


From the fact that you’ve redacted the source URL for the scanner, it seems that you’re downloading from your internal artifact management instance. In that case it looks like it’s all on your side, and you’ll need to figure out why the download and/or unpacking didn’t go well. Possible candidates: you’ve stored a corrupted copy, firewall interference, …