jjb: babeltrace: fail gerrit jobs on compiler warnings
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 12 Jul 2022 21:02:08 +0000 (17:02 -0400)
committerMichael Jeanson <mjeanson@efficios.com>
Mon, 18 Jul 2022 18:26:47 +0000 (14:26 -0400)
Change-Id: I1fb52a4702a32a39bdda1a975d8b06b8a62eb084
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
jobs/babeltrace.yaml

index 3d5b0c0906fdb98da5d25ab9589e21d8323698bd..71bbb18fc6560822e2f26dddee2ed17afa678775 100644 (file)
     name: 'babeltrace_publishers_gerrit'
     publishers:
       - tap: *babeltrace_publisher_tap_defaults
-      - raw: *babeltrace_publisher_warnings-ng_defaults
+      # Fail job on any compiler warnings
+      - raw:
+          xml: |
+            <io.jenkins.plugins.analysis.core.steps.IssuesRecorder plugin="warnings-ng">
+              <analysisTools>
+                <io.jenkins.plugins.analysis.warnings.Gcc4>
+                  <id/>
+                  <name/>
+                  <jenkins plugin="plugin-util-api"/>
+                  <pattern/>
+                  <reportEncoding/>
+                  <skipSymbolicLinks>false</skipSymbolicLinks>
+                </io.jenkins.plugins.analysis.warnings.Gcc4>
+                <io.jenkins.plugins.analysis.warnings.Clang>
+                  <id/>
+                  <name/>
+                  <jenkins plugin="plugin-util-api"/>
+                  <pattern/>
+                  <reportEncoding/>
+                  <skipSymbolicLinks>false</skipSymbolicLinks>
+                </io.jenkins.plugins.analysis.warnings.Clang>
+              </analysisTools>
+              <sourceCodeEncoding/>
+              <sourceDirectory/>
+              <sourceDirectories/>
+              <ignoreQualityGate>false</ignoreQualityGate>
+              <ignoreFailedBuilds>true</ignoreFailedBuilds>
+              <failOnError>false</failOnError>
+              <healthy>0</healthy>
+              <unhealthy>0</unhealthy>
+              <minimumSeverity plugin="analysis-model-api">
+                <name>LOW</name>
+              </minimumSeverity>
+              <filters/>
+              <isEnabledForFailure>true</isEnabledForFailure>
+              <isAggregatingResults>true</isAggregatingResults>
+              <isBlameDisabled>false</isBlameDisabled>
+              <skipPublishingChecks>true</skipPublishingChecks>
+              <publishAllIssues>false</publishAllIssues>
+              <qualityGates>
+                <io.jenkins.plugins.analysis.core.util.QualityGate>
+                  <threshold>1</threshold>
+                  <type>TOTAL</type>
+                  <status>FAILED</status>
+                </io.jenkins.plugins.analysis.core.util.QualityGate>
+              </qualityGates>
+              <trendChartType>AGGREGATION_TOOLS</trendChartType>
+              <scm/>
+            </io.jenkins.plugins.analysis.core.steps.IssuesRecorder>
       - archive: *babeltrace_publisher_archive_defaults
       - workspace-cleanup: *babeltrace_publisher_workspace-cleanup_defaults
 
This page took 0.032445 seconds and 4 git commands to generate.