Merge "Add sdninterfaceapp to JJB"
[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             user: '{ssh-credentials}'
53
54     triggers:
55         - gerrit:
56             server-name: 'OpenDaylight'
57             trigger-on:
58                 - patchset-created-event:
59                     exclude-drafts: 'false'
60                     exclude-trivial-rebase: 'false'
61                     exclude-no-code-change: 'false'
62                 - draft-published-event
63                 - comment-added-contains-event:
64                     comment-contains-value: 'recheck'
65                 - comment-added-contains-event:
66                     comment-contains-value: 'reverify'
67             projects:
68               - project-compare-type: 'ANT'
69                 project-pattern: 'sfc'
70                 branches:
71                   - branch-compare-type: 'ANT'
72                     branch-pattern: '**/{branch}'
73                 file-paths:
74                     - compare-type: ANT
75                       pattern: sfc-py/**
76
77     builders:
78         - shell: |
79             cd sfc-py
80             tox
81
82     publishers:
83         - email-notification:
84             email-prefix: '[sfc]'
85