Merge "Add support for Clang Scan-Build plugin version 1.5"

This commit is contained in:
Jenkins 2015-06-09 12:04:54 +00:00 committed by Gerrit Code Review
commit 65e9c25f9a
4 changed files with 7 additions and 0 deletions

View File

@ -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):

View File

@ -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>

View File

@ -2,3 +2,4 @@ publishers:
- scan-build:
mark-unstable: true
threshold: 0
exclude-paths: external-lib

View File

@ -4,6 +4,7 @@
<jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher>
<markBuildUnstableWhenThresholdIsExceeded>false</markBuildUnstableWhenThresholdIsExceeded>
<bugThreshold>0</bugThreshold>
<clangexcludedpaths/>
</jenkins.plugins.clangscanbuild.publisher.ClangScanBuildPublisher>
</publishers>
</project>