Use single macro and single trigger word for all every-patch jobs
[releng/builder.git] / jjb / sfc / sfc-python.yaml
1 - project:
2     name: sfc-python
3     jobs:
4         - 'sfc-verify-python-{stream}'
5
6     # stream:    release stream (eg. stable-boron or beryllium)
7     # branch:    git branch (eg. stable/boron or master)
8     stream:
9         - carbon:
10             branch: 'master'
11         - boron:
12             branch: 'stable/boron'
13         - beryllium:
14             branch: 'stable/beryllium'
15
16     project: 'sfc'
17
18 - job-template:
19     name: 'sfc-verify-python-{stream}'
20
21     # Job template for ODL verify jobs
22     #
23     # The purpose of this job template is to setup a ODL verify job
24     #
25     # Required Variables:
26     #     stream:    release stream (eg. stable-boron or beryllium)
27     #     branch:    git branch (eg. stable/boron or master)
28
29     project-type: freestyle
30     node: centos7-java-builder-2c-8g
31     concurrent: true
32
33     logrotate:
34         daysToKeep: '{build-days-to-keep}'
35         numToKeep: '{build-num-to-keep}'
36         artifactDaysToKeep: '{build-artifact-days-to-keep}'
37         artifactNumToKeep: '{build-artifact-num-to-keep}'
38
39     parameters:
40         - opendaylight-infra-parameters:
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]'