Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sasi8008
Contributor
Contributor

SonarQube code reveiw for Talend code ,in cicd process thorugh the jenkins pipeline script

i have created Jenkins pipileine script job , for cicd process.

Am how to sonarQube code scan "Talend code " though the jenkins pipiline(groovy ) script job.

am using gitlab repository.am using mvn setting xml for conencting to respevtive respositories and downloading jars+

sh "sonar:sonar -f Talend/poms/pom,xml -e -jobs/process/(jobname) -am -gs /etc/maven/setting.xml -Dlicencepath=apps/opt..

-Dproductpath=apps/opt/application/...

-Dsonar.sources=apps/opt/application/jenkins/...

-Dsonar.prejectkey=dxcbsd...

-Dsonar.host=https/...

-Dsonar.login=eeeefvfsd...

what is the path to pass through the -Dsonar.sorces . this the issue facing issue.

any another approach

kudos

1 Reply
Anonymous
Not applicable

Hi Sasi,

 

looks like you are trying to do code coverage with sonarQube. I did try the same with sonarQube and Jacoco using the the Jenkins plugin. However it didn't work for me. it would either show 0% or 100% coverage and the reason is because of the way Talend generates the code. At this point of time i think we need to wait till Talend comes up with some native or integrated solution.

 

Thanks,

Sree