d4a2975749e20a84e2b6c2c4ee6224defabf7ce8
[releng/builder.git] / jjb / bgpcep / bgpcep-python.yaml
1 - project:
2     name: bgpcep-python
3     jobs:
4         - 'bgpcep-verify-python-{stream}'
5
6     # stream:    release stream (eg. stable-lithium or beryllium)
7     # branch:    git branch (eg. stable/lithium or master)
8     stream:
9         - boron:
10             branch: 'master'
11         - beryllium:
12             branch: 'stable/beryllium'
13         - stable-lithium:
14             branch: 'stable/lithium'
15
16     project: 'bgpcep'
17     jdk: 'openjdk7'
18
19 - job-template:
20     name: 'bgpcep-verify-python-{stream}'
21
22     # Job template for ODL verify jobs
23     #
24     # The purpose of this job template is to setup a ODL verify job
25     #
26     # Required Variables:
27     #     stream:    release stream (eg. stable-lithium or beryllium)
28     #     branch:    git branch (eg. stable/lithium or master)
29
30     project-type: freestyle
31     node: dynamic_verify
32     concurrent: true
33     jdk: '{jdk}'
34
35     logrotate:
36         daysToKeep: '{build-days-to-keep}'
37         numToKeep: '{build-num-to-keep}'
38         artifactDaysToKeep: '{build-artifact-days-to-keep}'
39         artifactNumToKeep: '{build-artifact-num-to-keep}'
40
41     parameters:
42         - project-parameter:
43             project: '{project}'
44         - gerrit-parameter:
45             branch: '{branch}'
46
47     scm:
48         - gerrit-trigger-scm:
49             credentials-id: '{ssh-credentials}'
50             refspec: '$GERRIT_REFSPEC'
51             choosing-strategy: 'gerrit'
52
53     wrappers:
54         - build-timeout
55         - ssh-agent-credentials:
56             users:
57                 - '{ssh-credentials}'
58
59     triggers:
60         - gerrit:
61             server-name: 'OpenDaylight'
62             trigger-on:
63                 - patchset-created-event:
64                     exclude-drafts: 'false'
65                     exclude-trivial-rebase: 'false'
66                     exclude-no-code-change: 'false'
67                 - draft-published-event
68                 - comment-added-contains-event:
69                     comment-contains-value: 'recheck'
70                 - comment-added-contains-event:
71                     comment-contains-value: 'reverify'
72             projects:
73               - project-compare-type: 'ANT'
74                 project-pattern: 'bgpcep'
75                 branches:
76                   - branch-compare-type: 'ANT'
77                     branch-pattern: '**/{branch}'
78                 file-paths:
79                     - compare-type: ANT
80                       pattern: pcep/pcepy/**
81
82     builders:
83         - shell: |
84             virtualenv $WORKSPACE/venv-tox
85             source $WORKSPACE/venv-tox/bin/activate
86             pip install tox argparse
87             tox --version
88             cd $WORKSPACE/pcep/pcepy
89             tox
90
91     publishers:
92         - email-notification:
93             email-prefix: '[bgpcep]'