Task #37
Updated by Fernando Jose Capeletto Neto almost 2 years ago
Create a multi-topic branch CMSDisplay_Sonar Jenkins pipeline to trigger SonarQube code analysis
Branch: https://gitlab.com/fernando.engineer/cms/CMSDisplay/-/tree/20230408_task37_enable_sonarqube_analysis
Sonar Analysis working when launch locally from VStudio using npm rum sonar (and configuring sonar-project.properties)
The result was published in https://sonarqube.fernando.engineer/dashboard?id=CMSDisplay
Created a Jenkins pipeline but still failing:
= Pending =
* Fix permissions : /var/lib/jenkins/workspace/CMS_SonarQube/node_modules/sonar-scanner/bin/sonar-scanner: 59: exec: : Permission denied
* ng test causes pipeline to hang waiting to launch a browser, there are alternatives to fix it :
** https://blog.angulartraining.com/how-to-running-angular-tests-on-continuous-integration-servers-ad492219c08c
** https://medium.com/miq-tech-and-analytics/sonar-jenkins-integration-for-angular-applications-996beab67b80