Details
-
Type:
Improvement
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.7
-
Fix Version/s: None
-
Labels:None
-
Number of attachments :
Description
We very, very rarely would want Sonar to run on a user initiated build. In the 1.7 version, the environment variable exclusion trigger was added such that a build parameter could be added to the project and when the job is manually run, the user could disable sonar by checking a boolean parameter. This is not very user friendly for us as we almost never want sonar to execute when a build is manually run. Now users have to go to a subsequent page and click a boolean every time a manual build is run.
Instead, I would ask that a specific skip user cause trigger exclusion be added. This would always prevent sonar from running when a manual build is requested. Pull request on github: https://github.com/SonarSource/jenkins-sonar-plugin/pull/4#issuecomment-2580276
In order to address the use case where once in a great while one would want a manual build to include sonar, I would propose that a new project action be created to "Run with Sonar" that kicks off a build with a cause of SonarCause (which can't be configured as a skip) and the Sonar analysis is conducted. This would only have to be enabled if the skip user cause is configured as true.
Hi Peter, for me even if we provide a new trigger exclusion option there won't be a big difference with what is currently possible. Indeed with this new trigger exclusion option, it will be up to the Hudson user to :
With the current Hudson plugin, it's up to the Hudson user to :