Merge "refactor ovsdb patch test and add ability to trigger netvirt csit"
[releng/builder.git] / jjb / sfc / sfc-python.yaml
1 - project:
2     name: sfc-python
3     jobs:
4         - 'sfc-verify-python-{stream}'
5
6     # stream:    release stream (eg. stable-boron or beryllium)
7     # branch:    git branch (eg. stable/boron or master)
8     stream:
9         - carbon:
10             branch: 'master'
11         - boron:
12             branch: 'stable/boron'
13         - beryllium:
14             branch: 'stable/beryllium'
15
16     project: 'sfc'
17
18 - job-template:
19     name: 'sfc-verify-python-{stream}'
20
21     # Job template for ODL verify jobs
22     #
23     # The purpose of this job template is to setup a ODL verify job
24     #
25     # Required Variables:
26     #     stream:    release stream (eg. stable-boron or beryllium)
27     #     branch:    git branch (eg. stable/boron or master)
28
29     project-type: freestyle
30     node: centos7-java-builder-2c-8g
31     concurrent: true
32
33     properties:
34         - opendaylight-infra-properties:
35             build-days-to-keep: '{build-days-to-keep}'
36
37     parameters:
38         - opendaylight-infra-parameters:
39             project: '{project}'
40             branch: '{branch}'
41             refspec: 'refs/heads/{branch}'
42             artifacts: '{archive-artifacts}'
43
44     scm:
45         - gerrit-trigger-scm:
46             refspec: '$GERRIT_REFSPEC'
47             choosing-strategy: 'gerrit'
48
49     wrappers:
50         - opendaylight-infra-wrappers:
51             build-timeout: '{build-timeout}'
52
53     triggers:
54         - gerrit-trigger-patch-submitted:
55             server: '{server-name}'
56             project: '{project}'
57             branch: '{branch}'
58             files: 'sfc-py/**'
59
60     builders:
61         - shell: |
62             virtualenv $WORKSPACE/venv-tox
63             source $WORKSPACE/venv-tox/bin/activate
64             pip install tox argparse
65             tox --version
66             cd $WORKSPACE/sfc-py
67             tox
68             ./jenkins_build_package.sh
69
70     publishers:
71         - email-notification:
72             email-recipients: '{email-recipients}'
73             email-prefix: '[sfc]'