9b226d93bcde0a76b2641169ca615942a324cfff
[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:
8       - oxygen:
9           branch: 'master'
10       - nitrogen:
11           branch: 'stable/nitrogen'
12       - carbon:
13           branch: 'stable/carbon'
14
15     project: 'sfc'
16
17 - job-template:
18     name: 'sfc-verify-python-{stream}'
19
20     project-type: freestyle
21     node: centos7-builder-2c-8g
22     concurrent: true
23
24     properties:
25       - opendaylight-infra-properties:
26           build-days-to-keep: '{build-days-to-keep}'
27
28     parameters:
29       - opendaylight-infra-parameters:
30           os-cloud: '{os-cloud}'
31           project: '{project}'
32           branch: '{branch}'
33           refspec: 'refs/heads/{branch}'
34           artifacts: '{archive-artifacts}'
35
36     scm:
37       - gerrit-trigger-scm:
38           refspec: '$GERRIT_REFSPEC'
39           choosing-strategy: 'gerrit'
40
41     wrappers:
42       - opendaylight-infra-wrappers:
43           build-timeout: '{build-timeout}'
44
45     triggers:
46       - gerrit-trigger-patch-submitted:
47           gerrit-server-name: '{gerrit-server-name}'
48           project: '{project}'
49           branch: '{branch}'
50           files: 'sfc-py/**'
51
52     builders:
53       - shell: |
54           virtualenv $WORKSPACE/venv-tox
55           source $WORKSPACE/venv-tox/bin/activate
56           PYTHON="$WORKSPACE/venv-tox/bin/python"
57           $PYTHON -m pip install tox argparse
58           tox --version
59           cd $WORKSPACE/sfc-py
60           tox
61           ./jenkins_build_package.sh
62
63     publishers:
64       - email-notification:
65           email-recipients: '{email-recipients}'
66           email-prefix: '[sfc]'