adding exclusions in sonar analysis properties

0 votes
I want to add sonar's analysis properties in jenkins in addition to exclusions available in sonar property file. So I have some exclusions in properties file and I added some in the analysis properties in jenkins, but when it scans it just excludes the ones given in analysis properties and not the property file. I want it to exclude both exclusions.
Jun 8, 2018 in Jenkins by shubham
• 6,890 points
462 views

1 answer to this question.

0 votes

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:

Properties are not progressive. There's a proper structure and the first value found is the one that's used:

  • command line
  • properties file
  • project-level properties defined in the UI
  • global-level properties

Refer here for more info.

answered Jun 8, 2018 by DareDev
• 6,810 points

Related Questions In Jenkins

0 votes
1 answer

sonar XML plugin installation failure in jenkins

You can try this link which SonarQube XML ...READ MORE

answered Jun 20, 2018 in Jenkins by Atul
• 10,240 points
46 views
+5 votes
5 answers

Jenkins properties file

Follow these steps: 1. Install ‘EnvInject’ plug-in in the Jenkins ...READ MORE

answered Aug 2, 2018 in Jenkins by lina
• 8,110 points
7,609 views
+1 vote
2 answers

What possible return values are there in Jenkins plugin “Sonarqube scanner”

Use Webhooks in SonarQube Administration setup to ...READ MORE

answered Aug 3, 2018 in Jenkins by Nilesh
• 6,880 points
1,612 views
0 votes
1 answer

How can I create global macros and templates in jenkins job builder?

you can append the path to the ...READ MORE

answered Apr 2, 2018 in Jenkins by ajs3033
• 7,280 points
310 views
+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,380 points
152 views
0 votes
1 answer
0 votes
1 answer

unable to compile java code in Jenkins

If the code is compiling and running ...READ MORE

answered Apr 25, 2018 in Jenkins by DareDev
• 6,810 points
207 views
0 votes
2 answers