Sonar: Support sonar-scanner tag builder task (master)
Without this, a scanner cannot be selected Task: 5711 Story: 2001206 Change-Id: I780596ce7f42019132b6c6c2bda9d0fdbd688f32
This commit is contained in:
parent
3b120c3bab
commit
2e77650a4e
|
@ -2979,6 +2979,7 @@ def sonar(registry, xml_parent, data):
|
|||
AnalyzingwiththeSonarQubeScanner>`_
|
||||
|
||||
:arg str sonar-name: Name of the Sonar installation.
|
||||
:arg str sonar-scanner: Name of the Sonar Scanner.
|
||||
:arg str task: Task to run. (default '')
|
||||
:arg str project: Path to Sonar project properties file. (default '')
|
||||
:arg str properties: Sonar configuration properties. (default '')
|
||||
|
@ -2997,6 +2998,7 @@ def sonar(registry, xml_parent, data):
|
|||
sonar.set('plugin', 'sonar')
|
||||
XML.SubElement(sonar, 'installationName').text = data['sonar-name']
|
||||
mappings = [
|
||||
('scanner-name', 'sonarScannerName', ''),
|
||||
('task', 'task', ''),
|
||||
('project', 'project', ''),
|
||||
('properties', 'properties', ''),
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<builders>
|
||||
<hudson.plugins.sonar.SonarRunnerBuilder plugin="sonar">
|
||||
<installationName>Sonar</installationName>
|
||||
<sonarScannerName>scanner-3.x</sonarScannerName>
|
||||
<task>views</task>
|
||||
<project>sonar-project.properties</project>
|
||||
<properties>sonar.views.list=myview1,myview2</properties>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
builders:
|
||||
- sonar:
|
||||
sonar-name: Sonar
|
||||
scanner-name: scanner-3.x
|
||||
task: views
|
||||
project: sonar-project.properties
|
||||
properties: sonar.views.list=myview1,myview2
|
||||
|
|
Loading…
Reference in New Issue