refactor email recipients to parameter with default value
[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:
57             server-name: 'OpenDaylight'
58             trigger-on:
59                 - patchset-created-event:
60                     exclude-drafts: 'true'
61                     exclude-trivial-rebase: 'false'
62                     exclude-no-code-change: 'true'
63                 - draft-published-event
64                 - comment-added-contains-event:
65                     comment-contains-value: 'recheck'
66                 - comment-added-contains-event:
67                     comment-contains-value: 'reverify'
68             projects:
69               - project-compare-type: 'ANT'
70                 project-pattern: 'sfc'
71                 branches:
72                   - branch-compare-type: 'ANT'
73                     branch-pattern: '**/{branch}'
74                 file-paths:
75                     - compare-type: ANT
76                       pattern: sfc-py/**
77
78     builders:
79         - shell: |
80             virtualenv $WORKSPACE/venv-tox
81             source $WORKSPACE/venv-tox/bin/activate
82             pip install tox argparse
83             tox --version
84             cd $WORKSPACE/sfc-py
85             tox
86             ./jenkins_build_package.sh
87
88     publishers:
89         - email-notification:
90             email-recipients: '{email-recipients}'
91             email-prefix: '[sfc]'