Convert bgpcep-pcepy python job template 98/35898/4
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 7 Mar 2016 23:27:15 +0000 (18:27 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 9 Mar 2016 14:21:47 +0000 (09:21 -0500)
Use the releng {name}-verify-python-{stream} template for the
integration-test verify-python job.

Bug: 5424
Change-Id: I74e5c4259b22145515a6fcbe13a6a0890cbd73fc
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/bgpcep/bgpcep-pcepy.yaml [new file with mode: 0644]
jjb/bgpcep/bgpcep-python.yaml [deleted file]

diff --git a/jjb/bgpcep/bgpcep-pcepy.yaml b/jjb/bgpcep/bgpcep-pcepy.yaml
new file mode 100644 (file)
index 0000000..4cf2abe
--- /dev/null
@@ -0,0 +1,17 @@
+- project:
+    name: bgpcep-pcepy
+    jobs:
+        - '{name}-verify-python-{stream}'
+
+    # stream:    release stream (eg. stable-lithium or beryllium)
+    # branch:    git branch (eg. stable/lithium or master)
+    stream:
+        - boron:
+            branch: 'master'
+        - beryllium:
+            branch: 'stable/beryllium'
+        - stable-lithium:
+            branch: 'stable/lithium'
+
+    toxdir: 'pcep/pcepy'
+    project: 'bgpcep'
diff --git a/jjb/bgpcep/bgpcep-python.yaml b/jjb/bgpcep/bgpcep-python.yaml
deleted file mode 100644 (file)
index ae76273..0000000
+++ /dev/null
@@ -1,91 +0,0 @@
-- project:
-    name: bgpcep-python
-    jobs:
-        - 'bgpcep-verify-python-{stream}'
-
-    # stream:    release stream (eg. stable-lithium or beryllium)
-    # branch:    git branch (eg. stable/lithium or master)
-    stream:
-        - boron:
-            branch: 'master'
-        - beryllium:
-            branch: 'stable/beryllium'
-        - stable-lithium:
-            branch: 'stable/lithium'
-
-    project: 'bgpcep'
-
-- 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:    release stream (eg. stable-lithium or beryllium)
-    #     branch:    git branch (eg. stable/lithium or master)
-
-    project-type: freestyle
-    node: dynamic_verify
-    concurrent: true
-
-    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:
-            users:
-                - '{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: |
-            virtualenv $WORKSPACE/venv-tox
-            source $WORKSPACE/venv-tox/bin/activate
-            pip install tox argparse
-            tox --version
-            cd $WORKSPACE/pcep/pcepy
-            tox
-
-    publishers:
-        - email-notification:
-            email-prefix: '[bgpcep]'