merge GIT_BRANCH and GERRIT_BRANCH into BRANCH
[releng.git] / jjb / vnf_forwarding_graph / vnf_forwarding_graph.yml
index 01e2691..450599e 100644 (file)
@@ -1,66 +1,53 @@
 - project:
     name: vnf_forwarding_graph
+
+    project: '{name}'
+
     jobs:
-        - 'vnf_forwarding_graph-test'
-        - 'vnf_forwarding_graph-daily-master'
+        - 'vnf_forwarding_graph-verify-{stream}'
 
-    # stream:    branch with - in place of / (eg. stable-helium)
-    # branch:    branch (eg. stable/helium)
     stream:
         - master:
-            branch: 'master'
-
-    project: 'vnf_forwarding_graph'
-    somevar: 'foo'
+            branch: '{stream}'
+            gs-pathname: ''
+            disabled: false
+        - danube:
+            branch: 'stable/{stream}'
+            gs-pathname: '/{stream}'
+            disabled: false
 
 - job-template:
-    name: vnf_forwarding_graph-test
-
-    project-type: freestyle
+    name: 'vnf_forwarding_graph-verify-{stream}'
 
-    logrotate:
-        daysToKeep: 30
-        numToKeep: 10
-        artifactDaysToKeep: -1
-        artifactNumToKeep: -1
+    disabled: '{obj:disabled}'
 
-    builders:
-        - shell: |
-            echo "Hello world from vnf_forwarding_graph"
-
-- job-template:
-    name: 'vnf_forwarding_graph-daily-master'
-
-    # Job template for daily builders
-    #
-    # Required Variables:
-    #     stream:    branch with - in place of / (eg. stable)
-    #     branch:    branch (eg. stable)
-
-    project-type: freestyle
-    varsetabove: '{somevar}'
-
-    logrotate:
-        daysToKeep: '{build-days-to-keep}'
-        numToKeep: '{build-num-to-keep}'
-        artifactDaysToKeep: '{build-artifact-days-to-keep}'
-        artifactNumToKeep: '{build-artifact-num-to-keep}'
-
-    wrappers:
-        - ssh-agent-credentials:
-            user: '{ssh-credentials}'
+    parameters:
+        - project-parameter:
+            project: '{project}'
+            branch: '{branch}'
+    scm:
+        - git-scm-gerrit
 
     triggers:
-        - timed: 'H H * * *'
-
-    prebuilders:
-        - test-macro
+        - gerrit:
+            server-name: 'gerrit.opnfv.org'
+            trigger-on:
+                - patchset-created-event:
+                    exclude-drafts: 'false'
+                    exclude-trivial-rebase: 'false'
+                    exclude-no-code-change: 'false'
+                - draft-published-event
+                - comment-added-contains-event:
+                    comment-contains-value: 'recheck'
+                - comment-added-contains-event:
+                    comment-contains-value: 'reverify'
+            projects:
+              - project-compare-type: 'ANT'
+                project-pattern: '{project}'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
 
     builders:
         - shell: |
-            echo "Hello world from vnf_forwarding_graph {somevar} daily"
-        - test-macro
-
-    postbuilders:
-        - test-macro
-
+            echo "Nothing to verify!"