88ac908f8c141bbf6e58a900ff72ff96555fd5ec
[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-lithium or beryllium)
7     # branch:    git branch (eg. stable/lithium or master)
8     stream:
9         - boron:
10             branch: 'master'
11         - beryllium:
12             branch: 'stable/beryllium'
13
14     project: 'sfc'
15     jdk: 'openjdk7'
16
17 - job-template:
18     name: 'sfc-verify-python-{stream}'
19
20     # Job template for ODL verify jobs
21     #
22     # The purpose of this job template is to setup a ODL verify job
23     #
24     # Required Variables:
25     #     stream:    release stream (eg. stable-lithium or beryllium)
26     #     branch:    git branch (eg. stable/lithium or master)
27
28     project-type: freestyle
29     node: dynamic_verify
30     concurrent: true
31     jdk: '{jdk}'
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         - project-parameter:
41             project: '{project}'
42         - gerrit-parameter:
43             branch: '{branch}'
44
45     scm:
46         - gerrit-trigger-scm:
47             credentials-id: '{ssh-credentials}'
48             refspec: '$GERRIT_REFSPEC'
49             choosing-strategy: 'gerrit'
50
51     wrappers:
52         - build-timeout
53         - ssh-agent-credentials:
54             users:
55                 - '{ssh-credentials}'
56
57     triggers:
58         - gerrit:
59             server-name: 'OpenDaylight'
60             trigger-on:
61                 - patchset-created-event:
62                     exclude-drafts: 'false'
63                     exclude-trivial-rebase: 'false'
64                     exclude-no-code-change: 'false'
65                 - draft-published-event
66                 - comment-added-contains-event:
67                     comment-contains-value: 'recheck'
68                 - comment-added-contains-event:
69                     comment-contains-value: 'reverify'
70             projects:
71               - project-compare-type: 'ANT'
72                 project-pattern: 'sfc'
73                 branches:
74                   - branch-compare-type: 'ANT'
75                     branch-pattern: '**/{branch}'
76                 file-paths:
77                     - compare-type: ANT
78                       pattern: sfc-py/**
79
80     builders:
81         - shell: |
82             virtualenv $WORKSPACE/venv-tox
83             source $WORKSPACE/venv-tox/bin/activate
84             pip install tox argparse
85             tox --version
86             cd $WORKSPACE/sfc-py
87             tox
88             ./jenkins_build_package.sh
89
90     publishers:
91         - email-notification:
92             email-prefix: '[sfc]'
93