Merge "Fix yamllint for opflex"
[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           project: '{project}'
41           branch: '{branch}'
42           refspec: 'refs/heads/{branch}'
43           artifacts: '{archive-artifacts}'
44
45     scm:
46       - gerrit-trigger-scm:
47           refspec: '$GERRIT_REFSPEC'
48           choosing-strategy: 'gerrit'
49
50     wrappers:
51       - opendaylight-infra-wrappers:
52           build-timeout: '{build-timeout}'
53
54     triggers:
55       - gerrit-trigger-patch-submitted:
56           server: '{server-name}'
57           project: '{project}'
58           branch: '{branch}'
59           files: 'sfc-py/**'
60
61     builders:
62       - shell: |
63           virtualenv $WORKSPACE/venv-tox
64           source $WORKSPACE/venv-tox/bin/activate
65           pip install tox argparse
66           tox --version
67           cd $WORKSPACE/sfc-py
68           tox
69           ./jenkins_build_package.sh
70
71     publishers:
72       - email-notification:
73           email-recipients: '{email-recipients}'
74           email-prefix: '[sfc]'