Performing Automatic Static Code Analysis of MuleSoft Application Using SonarQube Docker Container

Поділитися
Вставка
  • Опубліковано 30 вер 2024
  • This video will explain how to setup SonarQube in docker and perform static code analysis for MuleSoft applications.
    During video we will see that how to build SonarQube container using docker.
    1.) Pull SonarQube Docker Image
    docker pull fperezpa/mulesonarqube:7.7.3
    2.) Build and Run SonarQube as a Docker Container
    docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 fperezpa/mulesonarqube:7.7.3
    3.) Add Plugin into you application POM.XML
    Plugin details can be found in comments
    4.) Run Sonar Static Code Analysis using Maven
    mvn sonar:sonar -Dsonar.host.url=localhost:9000 -Dsonar.sources=.\src

КОМЕНТАРІ • 10

  • @skarthikongole
    @skarthikongole Місяць тому

    I see the the project was created after we ran the analysis. Can we create a project before hand and select the quality gate? before running our analysis

  • @skarthikongole
    @skarthikongole Місяць тому

    Why did you remove .xml from the Administration. If you remove it then it will not scan the xml files right? so how is it working?

  • @muletechnologyacademy-zero5625
    @muletechnologyacademy-zero5625  2 роки тому

    org.sonarsource.sonar-packaging-maven-plugin
    sonar-packaging-maven-plugin
    1.17
    true


    com.mulesoft.services.tools.sonarqube.MulePlugin
    MulePlugin
    mulevalidationsonarqubeplugin-mule

  • @hectorluis4218
    @hectorluis4218 Рік тому

    can you publish the Dockerfile source for fperezpa/mulesonarqube:7.7.3 docker image?

  • @nikunj40
    @nikunj40 2 роки тому +1

    How is it possible to invoke this from Jenkins ? Any thoughts ?

  • @gundeep_singh
    @gundeep_singh 2 роки тому +1

    Thankyou for this tutorial.. Can you please tell how we can integrate this github Actions workflow? Will it be able to call our localhost directly?

    • @muletechnologyacademy-zero5625
      @muletechnologyacademy-zero5625  2 роки тому +1

      You cannot use localhost on github. You will need to configure url that accessible over internet

    • @gundeep_singh
      @gundeep_singh 2 роки тому

      @@muletechnologyacademy-zero5625 if possible can you make a video on this as well? How can we integrate soanrqube in github actions

  • @paulsan2370
    @paulsan2370 Рік тому

    but, the coverage is disabled :(