Merge "Add support for Clang Scan-Build plugin version 1.5"
This commit is contained in:
commit
65e9c25f9a
|
@ -3846,6 +3846,8 @@ def scan_build(parser, xml_parent, data):
|
|||
:arg bool mark-unstable: Mark build as unstable if the number of bugs
|
||||
exceeds a threshold (default: false)
|
||||
:arg int threshold: Threshold for marking builds as unstable (default: 0)
|
||||
:arg string exclude-paths: Comma separated paths to exclude from reports
|
||||
(default: '')
|
||||
|
||||
Example:
|
||||
|
||||
|
@ -3864,6 +3866,8 @@ def scan_build(parser, xml_parent, data):
|
|||
XML.SubElement(p, 'markBuildUnstableWhenThresholdIsExceeded').text = \
|
||||
str(data.get('mark-unstable', False)).lower()
|
||||
XML.SubElement(p, 'bugThreshold').text = threshold
|
||||
XML.SubElement(p, 'clangexcludedpaths').text = str(
|
||||
data.get('exclude-paths', ''))
|
||||
|
||||
|
||||
def dry(parser, xml_parent, data):
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher>
|
||||
<markBuildUnstableWhenThresholdIsExceeded>true</markBuildUnstableWhenThresholdIsExceeded>
|
||||
<bugThreshold>0</bugThreshold>
|
||||
<clangexcludedpaths>external-lib</clangexcludedpaths>
|
||||
</jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher>
|
||||
</publishers>
|
||||
</project>
|
||||
|
|
|
@ -2,3 +2,4 @@ publishers:
|
|||
- scan-build:
|
||||
mark-unstable: true
|
||||
threshold: 0
|
||||
exclude-paths: external-lib
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher>
|
||||
<markBuildUnstableWhenThresholdIsExceeded>false</markBuildUnstableWhenThresholdIsExceeded>
|
||||
<bugThreshold>0</bugThreshold>
|
||||
<clangexcludedpaths/>
|
||||
</jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher>
|
||||
</publishers>
|
||||
</project>
|
||||
|
|
Loading…
Reference in New Issue