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,980 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,890 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
0 votes
1 answer

Is it possible to have a link to raw content of file in Azure DevOps

Sure, here's the call for the rests: GET ...READ MORE

answered Feb 10, 2022 in Other DevOps Questions by Bhavitha
• 1,000 points
0 votes
0 answers
+15 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 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
+2 votes
1 answer
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP