Merge "Add stable/lithium builders for controller"
[releng/builder.git] / jjb / sfc / sfc-python.yaml
1 - project:
2     name: sfc-python
3     jobs:
4         - 'sfc-verify-python-{stream}'
5
6     # stream:    branch with - in place of / (eg. stable-helium)
7     # branch:    branch (eg. stable/helium)
8     stream:
9         - master:
10             branch: 'master'
11
12     project: 'sfc'
13     jdk: 'openjdk7'
14
15 - job-template:
16     name: 'sfc-verify-python-{stream}'
17
18     # Job template for ODL verify jobs
19     #
20     # The purpose of this job template is to setup a ODL verify job
21     #
22     # Required Variables:
23     #     stream:    branch with - in place of / (eg. stable-helium)
24     #     branch:    branch (eg. stable/helium)
25
26     project-type: freestyle
27     node: dynamic_verify
28     concurrent: true
29     jdk: '{jdk}'
30
31     logrotate:
32         daysToKeep: '{build-days-to-keep}'
33         numToKeep: '{build-num-to-keep}'
34         artifactDaysToKeep: '{build-artifact-days-to-keep}'
35         artifactNumToKeep: '{build-artifact-num-to-keep}'
36
37     parameters:
38         - project-parameter:
39             project: '{project}'
40         - gerrit-parameter:
41             branch: '{branch}'
42
43     scm:
44         - gerrit-trigger-scm:
45             credentials-id: '{ssh-credentials}'
46             refspec: '$GERRIT_REFSPEC'
47             choosing-strategy: 'gerrit'
48
49     wrappers:
50         - build-timeout
51         - ssh-agent-credentials:
52             users:
53                 - '{ssh-credentials}'
54
55     triggers:
56         - gerrit:
57             server-name: 'OpenDaylight'
58             trigger-on:
59                 - patchset-created-event:
60                     exclude-drafts: 'false'
61                     exclude-trivial-rebase: 'false'
62                     exclude-no-code-change: 'false'
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             cd sfc-py
81             tox
82
83     publishers:
84         - email-notification:
85             email-prefix: '[sfc]'
86