fuel: Enable 3rd party CI for fuel plugin onos 61/22561/2
authorFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 29 Sep 2016 14:25:51 +0000 (16:25 +0200)
committerFatih Degirmenci <fatih.degirmenci@ericsson.com>
Thu, 29 Sep 2016 14:28:49 +0000 (16:28 +0200)
This change creates a job that gets triggered when a new patch is sent
to upstream OpenStack Gerrit project openstack/fuel-plugin-onos, running
2 jobs fuel-verify-plugin-build-master and fuel-verify-plugin-test-master.
Jobs do nothing at the moment and they don't vote to OpenStack Gerrit.

Change-Id: I5a935dbdedb795b0916a2759286d261431aa225d
Signed-off-by: Fatih Degirmenci <fatih.degirmenci@ericsson.com>
jjb/fuel/fuel-plugin-verify-jobs.yml

index affc705..cb20955 100644 (file)
             max-total: 4
             option: 'project'
 
-    # the url to plugin repo can essentially become a variable if
-    # the plugin name is injected to env by gerrit plugin
     scm:
         - git:
-            url: 'https://git.openstack.org/openstack/fuel-plugin-bgpvpn'
+            url: 'https://git.openstack.org/$GERRIT_PROJECT'
             refspec: '$GERRIT_REFSPEC'
             branches:
                 - 'origin/$GERRIT_BRANCH'
                 forbidden-file-paths:
                   - compare-type: ANT
                     pattern: 'README.md|.gitignore|.gitreview'
+              - project-compare-type: 'PLAIN'
+                project-pattern: 'openstack/fuel-plugin-onos'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+                forbidden-file-paths:
+                  - compare-type: ANT
+                    pattern: 'README.md|.gitignore|.gitreview'
             readable-message: true
 
     parameters:
                 - name: 'fuel-verify-plugin-build-{stream}'
                   current-parameters: false
                   predefined-parameters: |
+                    GERRIT_PROJECT=$GERRIT_PROJECT
                     GERRIT_BRANCH=$GERRIT_BRANCH
                     GERRIT_REFSPEC=$GERRIT_REFSPEC
                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                 - name: 'fuel-verify-plugin-test-{stream}'
                   current-parameters: false
                   predefined-parameters: |
+                    GERRIT_PROJECT=$GERRIT_PROJECT
                     GERRIT_BRANCH=$GERRIT_BRANCH
                     GERRIT_REFSPEC=$GERRIT_REFSPEC
                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
                 - 'fuel-verify-plugin-test-.*'
             block-level: 'NODE'
 
-    # the url to plugin repo can essentially become a variable if
-    # the plugin name is injected to env by gerrit plugin
     scm:
         - git:
-            url: 'https://git.openstack.org/openstack/fuel-plugin-bgpvpn'
+            url: 'https://git.openstack.org/$GERRIT_PROJECT'
             refspec: '$GERRIT_REFSPEC'
             branches:
                 - 'origin/$GERRIT_BRANCH'