d61f6b79baa4550a407f1c7f2159e343f178e1f3
[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       - carbon:
11           branch: 'master'
12       - boron:
13           branch: 'stable/boron'
14       - beryllium:
15           branch: 'stable/beryllium'
16
17     project: 'sfc'
18
19 - job-template:
20     name: 'sfc-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-boron or beryllium)
28     #     branch:    git branch (eg. stable/boron or master)
29
30     project-type: freestyle
31     node: centos7-java-builder-2c-8g
32     concurrent: true
33
34     properties:
35       - opendaylight-infra-properties:
36           build-days-to-keep: '{build-days-to-keep}'
37
38     parameters:
39       - opendaylight-infra-parameters:
40           os-cloud: '{os-cloud}'
41           project: '{project}'
42           branch: '{branch}'
43           refspec: 'refs/heads/{branch}'
44           artifacts: '{archive-artifacts}'
45
46     scm:
47       - gerrit-trigger-scm:
48           refspec: '$GERRIT_REFSPEC'
49           choosing-strategy: 'gerrit'
50
51     wrappers:
52       - opendaylight-infra-wrappers:
53           build-timeout: '{build-timeout}'
54
55     triggers:
56       - gerrit-trigger-patch-submitted:
57           server: '{server-name}'
58           project: '{project}'
59           branch: '{branch}'
60           files: 'sfc-py/**'
61
62     builders:
63       - shell: |
64           virtualenv $WORKSPACE/venv-tox
65           source $WORKSPACE/venv-tox/bin/activate
66           pip install tox argparse
67           tox --version
68           cd $WORKSPACE/sfc-py
69           tox
70           ./jenkins_build_package.sh
71
72     publishers:
73       - email-notification:
74           email-recipients: '{email-recipients}'
75           email-prefix: '[sfc]'