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