Merge "Disable Lithium jobs"
[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         - 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     disabled: {disabled}
21     node: centos7-java-builder-2c-8g
22
23     # Job template for ODL verify jobs
24     #
25     # The purpose of this job template is to setup a ODL verify job
26     #
27     # Required Variables:
28     #     stream:    release stream (eg. stable-lithium or beryllium)
29     #     branch:    git branch (eg. stable/lithium or master)
30
31     project-type: freestyle
32     concurrent: true
33
34     logrotate:
35         daysToKeep: '{build-days-to-keep}'
36         numToKeep: '{build-num-to-keep}'
37         artifactDaysToKeep: '{build-artifact-days-to-keep}'
38         artifactNumToKeep: '{build-artifact-num-to-keep}'
39
40     parameters:
41         - opendaylight-infra-parameters:
42             project: '{project}'
43             branch: '{branch}'
44             refspec: 'refs/heads/{branch}'
45             artifacts: '{archive-artifacts}'
46
47     scm:
48         - gerrit-trigger-scm:
49             refspec: '$GERRIT_REFSPEC'
50             choosing-strategy: 'gerrit'
51
52     wrappers:
53         - opendaylight-infra-wrappers:
54             build-timeout: '{build-timeout}'
55
56     triggers:
57         - gerrit:
58             server-name: 'OpenDaylight'
59             trigger-on:
60                 - patchset-created-event:
61                     exclude-drafts: 'false'
62                     exclude-trivial-rebase: 'false'
63                     exclude-no-code-change: 'false'
64                 - draft-published-event
65                 - comment-added-contains-event:
66                     comment-contains-value: 'recheck'
67                 - comment-added-contains-event:
68                     comment-contains-value: 'reverify'
69             projects:
70               - project-compare-type: 'ANT'
71                 project-pattern: 'sfc'
72                 branches:
73                   - branch-compare-type: 'ANT'
74                     branch-pattern: '**/{branch}'
75                 file-paths:
76                     - compare-type: ANT
77                       pattern: sfc-py/**
78
79     builders:
80         - shell: |
81             virtualenv $WORKSPACE/venv-tox
82             source $WORKSPACE/venv-tox/bin/activate
83             pip install tox argparse
84             tox --version
85             cd $WORKSPACE/sfc-py
86             tox
87             ./jenkins_build_package.sh
88
89     publishers:
90         - email-notification:
91             email-prefix: '[sfc]'