Make Java version for CSIT jobs configurable
[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
16 - job-template:
17     name: 'sfc-verify-python-{stream}'
18
19     # Job template for ODL verify jobs
20     #
21     # The purpose of this job template is to setup a ODL verify job
22     #
23     # Required Variables:
24     #     stream:    release stream (eg. stable-lithium or beryllium)
25     #     branch:    git branch (eg. stable/lithium or master)
26
27     project-type: freestyle
28     node: dynamic_verify
29     concurrent: true
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             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-prefix: '[sfc]'
91