Jenkins Job Analysis Properties for Classic ASP scanning

dotnet

(Jose Alvarez) #1

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension) 6.7.4.38452
  • what are you trying to achieve - create Jenkins SonarQube Scanner Job for classic ASP
  • what have you tried so far to achieve this- nothing yet as im not sure what to put in the analysis properties

I have the following settings in my analysis properties in jenkins but im not sure if this is right please help

Define source language as ASP

sonar.sources= ?? there are no files named SRC
sonar.language=ASP ??
sonar.sourceEncoding=UTF-8

thanks
jose


(Amaury Levé) #2

Hi @Jose_Alvarez,

Are you talking about ASP in ASP.Net the web technology? Or are you referring to something else?


(Jose Alvarez) #3

Hi Amaury,
The code is Classic ASP which i believe only uses vbscript for its code… ASP.NET i believe allows you to use other languages like C#…
Does sonarqube support analysis on this? and if so what is the sonar.language ? and is there a specific convention for the source file?
thx,
jose


(Jose Alvarez) #4

It appears that i have source code in multiple files in the root dir. and im not sure how that might be handled?? Is there a way to scan all files in the root dir of the project?
thx,
jose


(Amaury Levé) #5

I am not really familiar with classic ASP but it seems to be VB6 code (googling about it) so you should be able to use https://docs.sonarqube.org/display/PLUG/SonarVB6 analyze this. You will have to use the scanner cli (through our Jenkins plugin). You can find the documentation here https://docs.sonarqube.org/x/LB9q.

Cheers,
Amaury


(Jose Alvarez) #6

Thanks Ammo! ill try that and let you know how it worked out…
My other concern though is how to create the scan to not be limited to only one folder in the project… some of the repos im attempting to scan are not following convention and i need to scan the whole repo not just the source file but im not sure how to do this… any help on this would be greatly appreciated…?

thx,

jose


(Amaury Levé) #7

On the second documentation link, you can find info about how to specify the files to include in your analysis.