Execution Failure: Tasks support was removed

I’m unable to run the scanner. Every time I try sonar-scanner Dproject.settings=./sonar-project.properties -X, I get the following:

10:23:29.157 INFO: Scanner configuration file: /usr/local/bin/sonar-scanner/conf/sonar-scanner.properties
10:23:29.161 INFO: Project root configuration file: NONE
10:23:29.174 INFO: SonarQube Scanner
10:23:29.174 INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
10:23:29.174 INFO: Linux 4.15.0-47-generic amd64
10:23:29.275 DEBUG: keyStore is : 
10:23:29.275 DEBUG: keyStore type is : jks
10:23:29.275 DEBUG: keyStore provider is : 
10:23:29.275 DEBUG: init keystore
10:23:29.275 DEBUG: init keymanager of type SunX509
10:23:29.336 DEBUG: Create: /home/myuser/.sonar/cache
10:23:29.336 INFO: User cache: /home/myuser/.sonar/cache
10:23:29.337 DEBUG: Create: /home/myuser/.sonar/cache/_tmp
10:23:29.338 DEBUG: Extract sonar-scanner-api-batch in temp...
10:23:29.342 DEBUG: Get bootstrap index...
10:23:29.342 DEBUG: Download: https://sonarcloud.io/batch/index
10:23:30.012 DEBUG: Get bootstrap completed
10:23:30.019 DEBUG: Create isolated classloader...
10:23:30.024 DEBUG: Start temp cleaning...
10:23:30.030 DEBUG: Temp cleaning done
10:23:30.030 DEBUG: Execution getVersion
10:23:30.031 INFO: SonarQube server 7.8.0
10:23:30.033 DEBUG: Execution execute
10:23:30.221 INFO: Load global settings
10:23:30.910 DEBUG: GET 200 https://sonarcloud.io/api/settings/values.protobuf | time=684ms
10:23:30.932 INFO: Load global settings (done) | time=713ms
10:23:30.936 INFO: Server id: BD367519-AWHW8ct9-T_TB3XqouNu
10:23:30.946 INFO: User cache: /home/myuser/.sonar/cache
10:23:30.948 INFO: Load/download plugins
10:23:30.949 INFO: Load plugins index
10:23:31.073 DEBUG: GET 200 https://sonarcloud.io/api/plugins/installed | time=124ms
10:23:31.109 INFO: Load plugins index (done) | time=160ms
10:23:31.229 INFO: Load/download plugins (done) | time=281ms
10:23:31.324 DEBUG: Plugins:
10:23:31.324 DEBUG:   * SonarCSS (cssfamily)
10:23:31.324 DEBUG:   * SonarPLSQL (plsql)
10:23:31.324 DEBUG:   * SonarScala (sonarscala)
10:23:31.324 DEBUG:   * SonarC# (csharp)
10:23:31.325 DEBUG:   * Vulnerability Analysis (security)
10:23:31.325 DEBUG:   * SonarJava (java)
10:23:31.325 DEBUG:   * SonarHTML (web)
10:23:31.325 DEBUG:   * SonarFlex (flex)
10:23:31.325 DEBUG:   * SonarXML (xml)
10:23:31.325 DEBUG:   * SonarTS (typescript)
10:23:31.325 DEBUG:   * SonarVB (vbnet)
10:23:31.325 DEBUG:   * SonarSwift (swift)
10:23:31.325 DEBUG:   * SonarCFamily (cpp)
10:23:31.325 DEBUG:   * SonarPython (python)
10:23:31.325 DEBUG:   * JaCoCo (jacoco)
10:23:31.326 DEBUG:   * Mercurial 1.1.2 (scmmercurial)
10:23:31.326 DEBUG:   * SonarGo (go)
10:23:31.326 DEBUG:   * SonarKotlin (kotlin)
10:23:31.326 DEBUG:   * SonarTSQL (tsql)
10:23:31.326 DEBUG:   * SonarApex (sonarapex)
10:23:31.326 DEBUG:   * SonarJS (javascript)
10:23:31.326 DEBUG:   * SonarRuby (ruby)
10:23:31.326 DEBUG:   * Vulnerability Rules for C# (securitycsharpfrontend)
10:23:31.326 DEBUG:   * Vulnerability Rules for Java (securityjavafrontend)
10:23:31.326 DEBUG:   * License for SonarLint (license)
10:23:31.326 DEBUG:   * SonarCOBOL (cobol)
10:23:31.326 DEBUG:   * Git (scmgit)
10:23:31.326 DEBUG:   * SonarPHP (php)
10:23:31.327 DEBUG:   * SonarABAP (abap)
10:23:31.327 DEBUG:   * Vulnerability Rules for PHP (securityphpfrontend)
10:23:31.338 INFO: Loaded core extensions: developer-scanner
10:23:31.342 INFO: ------------------------------------------------------------------------
10:23:31.343 INFO: ------------------------------------------------------------------------
10:23:31.343 INFO: Total time: 2.201s
10:23:31.393 INFO: Final Memory: 22M/238M
10:23:31.394 INFO: ------------------------------------------------------------------------
10:23:31.394 ERROR: Error during SonarQube Scanner execution
10:23:31.394 ERROR: Tasks support was removed in SonarQube 7.6.

My sonar-project.properties are:

sonar.organization=set #don't want to show publicly
sonar.projectKey=set #don't want to show publicly
sonar.login=set #don't want to show publicly

Also, maybe helpful:

sonar-scanner Dproject.settings=./sonar-project.properties -v
INFO: Scanner configuration file: /usr/local/bin/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Linux 4.15.0-47-generic amd64

To me, this looks similar to CFamily plugin crashing during scan with gcc 4.9.1 output. However, It’s unclear to me what the timeline is for having the issue resolved, or what options are available to me in the meantime. Until I’m able to run it, I’m not able to use SonarQube in my CI process.


You’re missing the - on Dproject.settings=./sonar-project.properties, which by the way you don’t need anyway. That’s where the scanner’s going to look for properties anyway. Because the - is missing, this is seen not as the definition of a property, but as an argument (a task to run) and those aren’t supported.

Try this instead:

sonar-scanner -X



I am receiving same error after running below command:

Hi @sonar_naveen,

Welcome to the community.

I don’t understand your command line. Surely you didn’t actually pass “set” as the value of (almost) all your parameters?

Anyway, the error is the result of passing to the scanner something that it sees as an argument (without a -D to mean define this key/value pair). If you’re getting that particular error, then your analysis command line is not quite as you’ve portrayed it.


Hi Ann
set is the placeholder I have used in the post so that I do not expose the actual values publicly. I have passed all the arguments with -D .


I don’t know what to tell you. If you’re getting that error, then there’s something on the command line that is not -X and doesn’t start with -D.



I had same same issue today and managed to fix it for me. Have to say I am an actual Jenkins and SonarQube beginner though.

I have to use old versions (SonarQuabe 7.6, Jenkins 2.176, Sonar Scanner Plugin 3.3) due to a a limitation to 32-Bit on my test virtual machine.

In the jenkins configuration of the pipeline, where the build steps are configured, there is an input field for the “Task to run” under the group “Sonar scanner execution”.
It fixed the issue for me, when leaving that input field empty, because the error message said, that tasks are no longer supperted since SQ7.6.

Hope it may help you or some others that may come across this issue.

With regards


thanks Mattias , it helped me

thank you!