sonar property file & Analysis properties are getting exclusion in them

0 votes

How am I gonna add exclusions in sonar "Analysis properties" in jenkins even exclusion available in sonar property file.

I have exclusions in property file, and I have added exclusion in "Analysis properties" in jenkins. But while scanning it is excluding only the files given in "Analysis properties", but not from the property file.

I need the exclusion stated both in Property file as well as from the Analysis properties field and I am stuck.

Can anyone help me with this?

Jun 5, 2018 in Other DevOps Questions by Atul
• 10,240 points

1 answer to this question.

0 votes

I think following things should be kept in mind. Properties are not cumulative. As described at the top of this page, there is a fallback structure and the first-found value is the one that's used from this order of checking:

  1. Properties file
  2. Command line
  3. project-level properties defined in the UI
  4. global-level properties

I hope that the above information will be useful to you.

answered Jun 5, 2018 by Damon Salvatore
• 5,540 points

Related Questions In Other DevOps Questions

0 votes
1 answer

How to get issues count based on rules in a sonar project?

There are API docs in the footer ...READ MORE

answered May 4, 2018 in Other DevOps Questions by DareDev
• 6,850 points
0 votes
1 answer

How do I preserve local ivy repository in Bluemix BUILD & DEPLOY?

You're right--the pipeline spins up a new ...READ MORE

answered Jul 17, 2018 in Other DevOps Questions by Atul
• 10,240 points
+1 vote
2 answers

When do we use Chef or Azure SDK to create VM and deploy in automation

The solution to the automated deployment in ...READ MORE

answered Aug 21, 2018 in Other DevOps Questions by Priyaj
• 57,550 points
+13 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 26, 2018 in DevOps & Agile by DragonLord999
• 8,420 points
0 votes
1 answer