ovsnfv: Remove some paths from gerrit ci 41/13841/2
authorBilly O'Mahony <billy.o.mahony@intel.com>
Tue, 10 May 2016 13:09:46 +0000 (14:09 +0100)
committerBilly O'Mahony <billy.o.mahony@intel.com>
Wed, 11 May 2016 09:21:27 +0000 (10:21 +0100)
The current ci/build.sh script in ovsnfv only verifies changes to some
paths. For paths that it does not check do not run the ci. It is planned
to cover the currently unverified paths with a separate ci script.

Change-Id: I62071b8c9697e3c6fcb3f6d63e2c00404f3c5594
Signed-off-by: Billy O'Mahony <billy.o.mahony@intel.com>
Reviewed-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
Reviewed-by: Mark D. Gray <mark.d.gray@intel.com>
Reviewed-by: Tom Herbert <therbert@redhat.com>
jjb/ovsnfv/ovsnfv.yml

index 6f6d290..dbe0a25 100644 (file)
                 branches:
                   - branch-compare-type: 'ANT'
                     branch-pattern: '**/{branch}'
+                file-paths:
+                  - compare-type: ANT
+                    pattern: 'build/**'
+                  - compare-type: ANT
+                    pattern: 'ci/**'
 
     builders:
-        - shell: |
-            #!/bin/bash
-            set -o errexit
-            set -o nounset
-            set -o pipefail
-
-            cd $WORKSPACE/ci
-            ./build.sh
+        - build-rpms
 
 - job-template:
     name: 'ovsnfv-merge-{stream}'
               - project-compare-type: 'ANT'
                 project-pattern: '{project}'
                 branches:
-                    - branch-compare-type: 'ANT'
-                      branch-pattern: '**/{branch}'
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+                file-paths:
+                  - compare-type: ANT
+                    pattern: 'build/**'
+                  - compare-type: ANT
+                    pattern: 'ci/**'
 
     builders:
-        - shell: |
-            #!/bin/bash
-            set -o errexit
-            set -o nounset
-            set -o pipefail
-
-            cd $WORKSPACE/ci
-            ./build.sh
+        - build-rpms
 
 - job-template:
     name: 'ovsnfv-daily-{stream}'
     triggers:
         - timed: '@midnight'
 
+    builders:
+        - build-rpms
+
+    publishers:
+        - email:
+            recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com
+
+- builder:
+    name: build-rpms
     builders:
         - shell: |
             #!/bin/bash
 
             cd $WORKSPACE/ci
             ./build.sh
-
-    publishers:
-        - email:
-            recipients: therbert@redhat.com mark.d.gray@intel.com billy.o.mahony@intel.com