It takes too much time to check the js

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
  • what are you trying to achieve
  • what have you tried so far to achieve this

Hello, I’m building an npm building on the project using Jenkins. Also, when inspecting the source code using sonarqube, it takes too long to inspect the js file (about 20-30 minutes), so please advise Thank you.

1 Like

Hey there

It’s important to fill out the template post, not just include it in the post! :slight_smile:

Specifically, this information is missing:

1 Like

First of all, I apologize for my rambling questions. The version of Sonarqube is 7.9.6 and is used by Jenkins to check code quality using the Sonar-Scanner plug-in. However, it takes more than 20 minutes to inspect only the project to build npm(language = javascript). For the Maven Build project(language = java), the maximum is 1 minute. I look forward to hearing from you Please let me know if you have any question thanks.:slight_smile:

1 Like

script like this,

node {

def SONARQUBE_INSTALLATION_NAME = “sonarqube-server”
def SONARQUBE_CREDENTIAL_ID = “sonarqube-admin-credential”
stage(‘Code Inspect’) {
withEnv([“PATH+SQ=${tool ‘sonar-scanner4’}/bin”]) {
withEnv([“PATH+SQ=${tool ‘node-lts’}/bin”]) {
withSonarQubeEnv(installationName: SONARQUBE_INSTALLATION_NAME, credentialsId: SONARQUBE_CREDENTIAL_ID) {

                    sonarAppendParam = ""
                    sonarBaseParam = " -Dsonar.sources=src"
                    sonarBaseParam += " -Dsonar.inclusions=src/**/*.js,src/**/*.vue"
                    sonarBaseParam += " -Dsonar.projectBaseDir=."
                    sonarAppendParam += sonarBaseParam
                    sh '''
                        sonar-scanner \
                            -Dsonar.projectKey='''+SONARQUBE_PROJECT_KEY+''' \
                  ${JOB_URL} \
                            -Dsonar.links.scm='''+GITLAB_CODE_REPOSITORY_URL+''' \


password, and project key is all good

1 Like

and error code is,

ERROR: unable to parse file : file:///{file_directory}/.js

why display file:/// ??

1 Like


Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.6 → 8.9.10 → 9.7.1 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

If the performance issue persists after upgrade, please come back to us.

1 Like

Can you tell me why?


Can I see documents related to the version (including js documents)?

There is no problem when running on another server (13 seconds running time), but why does it take 28 minutes to run the same code?