Mark build using data from surefire-reports 96/44696/1
authorVictor Pickard <vpickard@redhat.com>
Thu, 25 Aug 2016 17:01:04 +0000 (13:01 -0400)
committerVictor Pickard <vpickard@redhat.com>
Fri, 26 Aug 2016 01:54:35 +0000 (21:54 -0400)
Use text-finder plugin to search test reports.

If there are any errors or failures in any of the
3 (currently) surefire-test reports, the IT job
will be marked as Unstable.

The text-finder plugin will print out info
for the offending surefire-test report.

Change-Id: I841680c9c1b232cc06c53be0f5dcc2be29cf98ad
Signed-off-by: Victor Pickard <vpickard@redhat.com>
jjb/netvirt/netvirt-full-integration.yaml

index 7b5631f27f0d1fc1ba033765992ed0f5d5569df0..4b9427f01a401b814f27248a65da0ba8ebf7c7d8 100644 (file)
@@ -23,7 +23,7 @@
                 - openjdk8
 
     project: 'netvirt'
-    archive-artifacts: '*.log'
+    archive-artifacts: '*.log **/target/surefire-reports/*.txt'
 
 - builder:
     name: netvirt-run-it-external-docker
@@ -31,7 +31,7 @@
         - maven-target:
             maven-version: '{maven-version}'
             pom: '{pomFile}'
-            goals: '-V -B verify -l {logfile} -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}}'
+            goals: '-V -B verify -l {logfile} -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}} -Dmaven.test.failure.ignore=true'
             properties:
                 - 'ovsdbserver.ipaddress=127.0.0.1'
                 - 'ovsdbserver.port=6641'
 - builder:
     name: netvirt-run-it-dockerOvs
     builders:
-        - install-docker-compose
         - maven-target:
             maven-version: '{maven-version}'
             pom: '{pomFile}'
-            goals: '-V -B verify -l {logfile} -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}} -Ddocker.compose.file=ovs-{OVS_VERSION}-hwvtep.yml -Ddocker.vEnvWs=$WORKSPACE -Dsgm=transparent'
+            goals: '-V -B verify -l {logfile} -Pintegrationtest -Dskip.karaf.featureTest=true -Dmaven.compile.fork=true -Dovsdb.controller.address=${{CONTROLLER_IP}} -Ddocker.compose.file=ovs-{OVS_VERSION}-hwvtep.yml -Ddocker.vEnvWs=$WORKSPACE -Dsgm=transparent -Dmaven.test.failure.ignore=true'
             properties:
                 - 'ovsdb.userspace.enabled=yes'
                 - 'maven.repo.local=/tmp/r'
                 - include-setup-controllerIp.sh
         - inject:
             properties-file: env.properties
+        - install-docker-compose
         - run-netvirt-vpnservice-it:
             OVS_VERSION: '{OVS_VERSION}'
             maven-version: '{maven-version}'
     publishers:
         - email-notification:
             email-prefix: '[netvirt]'
+        - text-finder:
+            fileset: "**/target/surefire-reports/*.xml"
+            regexp: 'failures\=\"[^0]\"'
+            succeed-if-found: false
+            unstable-if-found: true
+            also-check-console-output: false
         - archive-build:
             maven-version: '{mvn33}'