Unable to locate ‘report-task.txt’

Hi,
I am getting the same issue as mentioned by @gegediyu
I am trying to analyse my project through a jenkins job but it fails and the console prints the following message:

18:24:36.666 INFO: ------------------------------------------------------------------------
18:24:36.666 INFO: EXECUTION FAILURE
18:24:36.666 INFO: ------------------------------------------------------------------------
18:24:36.667 INFO: Total time: 1.047s
18:24:36.726 INFO: Final Memory: 11M/224M
18:24:36.726 INFO: ------------------------------------------------------------------------
18:24:36.727 ERROR: Error during SonarQube Scanner execution
Tasks support was removed in SonarQube 7.6.
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeeded?
ERROR: SonarQube scanner exited with non-zero code: 2

Versions:
SonarQube : 7.9.2
Jenkins : 2.213
SonarQube Scanner Jenkins Plugin : 2.11

Please Help!

Thanks in advance.

Hi,

Welcome to the community!

Could you provide more of the analysis log before the error?

 
Ann

Hi @ganncamp ,

Thanks for the quick response.

I have configured the sonarqube plugin in my jenkins job as shown below. PFB the screenshot.

Additional arguments : -X -Djavax.net.ssl.trustStore=/data/custom-trustore/cacerts -Djavax.net.ssl.trustStorePaasword=changeit -Djavax.net.debug=“ssl,handshake”

And now I am running the same jenkins job.

And I am running my SonarQube as a docker container that is hosted on localhost:9000 .

These are the whole analysis logs:

[projects] $ /scratch/psup_jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/mySonar/bin/sonar-scanner completeBUILD -Djavax.net.ssl.trustStore=/data/custom-trustore/cacerts -Djavax.net.ssl.trustStorePaasword=changeit -Djavax.net.debug=ssl,handshake -X -Djavax.net.ssl.trustStore=/data/custom-trustore/cacerts -Djavax.net.ssl.trustStorePaasword=changeit -Djavax.net.debug=ssl,handshake -Dsonar.host.url=http://localhost:9000/ -Dsonar.projectBaseDir=/scratch/app/OBP_PROD_BUILD/CZ_INFRA/projects
18:24:35.642 INFO: Scanner configuration file: /scratch/psup_jenkins/tools/hudson.plugins.sonar.SonarRunnerInstallation/mySonar/conf/sonar-scanner.properties
18:24:35.646 INFO: Project root configuration file: NONE
18:24:35.671 INFO: SonarQube Scanner 4.2.0.1873
18:24:35.671 INFO: Java 1.8.0_211 Oracle Corporation (64-bit)
18:24:35.671 INFO: Linux 4.1.12-124.27.1.el7uek.x86_64 amd64
18:24:35.847 DEBUG: keyStore is :
18:24:35.847 DEBUG: keyStore type is : jks
18:24:35.848 DEBUG: keyStore provider is :
18:24:35.848 DEBUG: init keystore
18:24:35.848 DEBUG: init keymanager of type SunX509
18:24:35.963 DEBUG: Create: /root/.sonar/cache
18:24:35.964 INFO: User cache: /root/.sonar/cache
18:24:35.964 DEBUG: Create: /root/.sonar/cache/_tmp
18:24:35.966 DEBUG: Extract sonar-scanner-api-batch in temp…
18:24:35.972 DEBUG: Get bootstrap index…
18:24:35.972 DEBUG: Download: http://localhost:9000/batch/index
18:24:36.025 DEBUG: Get bootstrap completed
18:24:36.034 DEBUG: Create isolated classloader…
18:24:36.042 DEBUG: Start temp cleaning…
18:24:36.049 DEBUG: Temp cleaning done
18:24:36.050 DEBUG: Execution getVersion
18:24:36.051 INFO: SonarQube server 7.9.2
18:24:36.053 DEBUG: Execution execute
18:24:36.254 WARN: SonarScanner will require Java 11 to run starting in SonarQube 8.x
18:24:36.255 DEBUG: Community 7.9.2.30863
18:24:36.372 INFO: Load global settings
18:24:36.412 DEBUG: GET 200 http://localhost:9000/api/settings/values.protobuf | time=37ms
18:24:36.447 INFO: Load global settings (done) | time=76ms
18:24:36.449 INFO: Server id: BF41A1F2-AXAQOXWEPys_r12SMqM8
18:24:36.472 INFO: User cache: /root/.sonar/cache
18:24:36.475 INFO: Load/download plugins
18:24:36.475 INFO: Load plugins index
18:24:36.483 DEBUG: GET 200 http://localhost:9000/api/plugins/installed | time=7ms
18:24:36.532 INFO: Load plugins index (done) | time=57ms
18:24:36.568 INFO: Load/download plugins (done) | time=93ms
18:24:36.630 DEBUG: Plugins:
18:24:36.631 DEBUG: * SonarPython 1.14.1.3143 (python)
18:24:36.631 DEBUG: * SonarCSS 1.1.1.1010 (cssfamily)
18:24:36.631 DEBUG: * GitHub Authentication for SonarQube 1.5.0.870 (authgithub)
18:24:36.631 DEBUG: * JaCoCo 1.0.2.475 (jacoco)
18:24:36.631 DEBUG: * SonarGo 1.1.1.2000 (go)
18:24:36.631 DEBUG: * SonarKotlin 1.5.0.315 (kotlin)
18:24:36.631 DEBUG: * Svn 1.9.0.1295 (scmsvn)
18:24:36.632 DEBUG: * SonarJS 5.2.1.7778 (javascript)
18:24:36.632 DEBUG: * SonarRuby 1.5.0.315 (ruby)
18:24:36.632 DEBUG: * SonarScala 1.5.0.315 (sonarscala)
18:24:36.632 DEBUG: * SonarC# 7.15.0.8572 (csharp)
18:24:36.632 DEBUG: * SonarJava 5.13.1.18282 (java)
18:24:36.632 DEBUG: * LDAP 2.2.0.608 (ldap)
18:24:36.632 DEBUG: * SonarHTML 3.1.0.1615 (web)
18:24:36.632 DEBUG: * Git 1.8.0.1574 (scmgit)
18:24:36.632 DEBUG: * SonarFlex 2.5.1.1831 (flex)
18:24:36.633 DEBUG: * SonarXML 2.0.1.2020 (xml)
18:24:36.633 DEBUG: * SAML 2.0 Authentication for SonarQube 1.1.0.181 (authsaml)
18:24:36.633 DEBUG: * SonarPHP 3.2.0.4868 (php)
18:24:36.633 DEBUG: * SonarTS 1.9.0.3766 (typescript)
18:24:36.633 DEBUG: * SonarVB 7.15.0.8572 (vbnet)
18:24:36.666 INFO: ------------------------------------------------------------------------
18:24:36.666 INFO: EXECUTION FAILURE
18:24:36.666 INFO: ------------------------------------------------------------------------
18:24:36.667 INFO: Total time: 1.047s
18:24:36.726 INFO: Final Memory: 11M/224M
18:24:36.726 INFO: ------------------------------------------------------------------------
18:24:36.727 ERROR: Error during SonarQube Scanner execution
Tasks support was removed in SonarQube 7.6.
WARN: Unable to locate ‘report-task.txt’ in the workspace. Did the SonarScanner succeeded?
ERROR: SonarQube scanner exited with non-zero code: 2
An attempt to send an e-mail to empty list of recipients, ignored.
Finished: FAILURE

Please let me know if I need to provide any other information.

Thanks!

Hi,

Thanks for sharing your configuration and logs.

Your configuration screenshot shows that you’ve set a “Task to run” and your error message tells you that “Tasks support was removed in SonarQube 7.6”.

So try blanking out the “Task to run” field in your configuration & rerunning the job. That should do it.

 
:smiley:
Ann

Hi Ann,
Thank you so much :slight_smile: that seems to have solved the problem.

-Akanksha