Add bgpcep python job to check pep8 61/17961/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 8 Apr 2015 18:45:23 +0000 (14:45 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 8 Apr 2015 18:45:28 +0000 (14:45 -0400)
Change-Id: Ibecd9b09a97b41d617357652acc259fe28d4637f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/bgpcep/bgpcep-python.yaml [new file with mode: 0644]

diff --git a/jjb/bgpcep/bgpcep-python.yaml b/jjb/bgpcep/bgpcep-python.yaml
new file mode 100644 (file)
index 0000000..ac8d0d1
--- /dev/null
@@ -0,0 +1,85 @@
+- project:
+    name: bgpcep-python
+    jobs:
+        - 'bgpcep-verify-python-{stream}'
+
+    # stream:    branch with - in place of / (eg. stable-helium)
+    # branch:    branch (eg. stable/helium)
+    stream:
+        - master:
+            branch: 'master'
+
+    project: 'bgpcep'
+    jdk: 'openjdk7'
+
+- job-template:
+    name: 'bgpcep-verify-python-{stream}'
+
+    # Job template for ODL verify jobs
+    #
+    # The purpose of this job template is to setup a ODL verify job
+    #
+    # Required Variables:
+    #     stream:    branch with - in place of / (eg. stable-helium)
+    #     branch:    branch (eg. stable/helium)
+
+    project-type: freestyle
+    node: dynamic_verify
+    concurrent: true
+    jdk: '{jdk}'
+
+    logrotate:
+        daysToKeep: '{build-days-to-keep}'
+        numToKeep: '{build-num-to-keep}'
+        artifactDaysToKeep: '{build-artifact-days-to-keep}'
+        artifactNumToKeep: '{build-artifact-num-to-keep}'
+
+    parameters:
+        - project-parameter:
+            project: '{project}'
+        - gerrit-parameter:
+            branch: '{branch}'
+
+    scm:
+        - gerrit-trigger-scm:
+            credentials-id: '{ssh-credentials}'
+            refspec: '$GERRIT_REFSPEC'
+            choosing-strategy: 'gerrit'
+
+    wrappers:
+        - build-timeout
+        - ssh-agent-credentials:
+            user: '{ssh-credentials}'
+
+    triggers:
+        - gerrit:
+            server-name: 'OpenDaylight'
+            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: 'bgpcep'
+                branches:
+                  - branch-compare-type: 'ANT'
+                    branch-pattern: '**/{branch}'
+                file-paths:
+                    - compare-type: ANT
+                      pattern: pcep/pcepy/**
+
+    builders:
+        - shell: |
+            cd pcep/pcepy
+            tox
+
+    publishers:
+        - email-notification:
+            email-prefix: '[bgpcep]'
+