d8dc40cf3fc0ec69f6c4d68fa019b2643c893129
[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       - oxygen:
11           branch: 'master'
12           jdk: 'openjdk8'
13       - nitrogen:
14           branch: 'stable/nitrogen'
15           jre: 'openjdk8'
16       - carbon:
17           branch: 'stable/carbon'
18
19     project: 'sfc'
20
21 - job-template:
22     name: 'sfc-verify-python-{stream}'
23
24     # Job template for ODL verify jobs
25     #
26     # The purpose of this job template is to setup a ODL verify job
27     #
28     # Required Variables:
29     #     stream:    release stream (eg. stable-boron or beryllium)
30     #     branch:    git branch (eg. stable/boron or master)
31
32     project-type: freestyle
33     node: centos7-java-builder-2c-8g
34     concurrent: true
35
36     properties:
37       - opendaylight-infra-properties:
38           build-days-to-keep: '{build-days-to-keep}'
39
40     parameters:
41       - opendaylight-infra-parameters:
42           os-cloud: '{os-cloud}'
43           project: '{project}'
44           branch: '{branch}'
45           refspec: 'refs/heads/{branch}'
46           artifacts: '{archive-artifacts}'
47
48     scm:
49       - gerrit-trigger-scm:
50           refspec: '$GERRIT_REFSPEC'
51           choosing-strategy: 'gerrit'
52
53     wrappers:
54       - opendaylight-infra-wrappers:
55           build-timeout: '{build-timeout}'
56
57     triggers:
58       - gerrit-trigger-patch-submitted:
59           server: '{server-name}'
60           project: '{project}'
61           branch: '{branch}'
62           files: 'sfc-py/**'
63
64     builders:
65       - shell: |
66           virtualenv $WORKSPACE/venv-tox
67           source $WORKSPACE/venv-tox/bin/activate
68           PYTHON="$WORKSPACE/venv-tox/bin/python"
69           $PYTHON -m 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]'