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