Merge "fixing docs to make the YAML valid"
[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-parameters:
41             project: '{project}'
42             branch: '{branch}'
43             refspec: 'refs/heads/{branch}'
44
45     scm:
46         - gerrit-trigger-scm:
47             refspec: '$GERRIT_REFSPEC'
48             choosing-strategy: 'gerrit'
49
50     wrappers:
51         - opendaylight-infra-wrappers:
52             build-timeout: '{build-timeout}'
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             virtualenv $WORKSPACE/venv-tox
80             source $WORKSPACE/venv-tox/bin/activate
81             pip install tox argparse
82             tox --version
83             cd $WORKSPACE/sfc-py
84             tox
85             ./jenkins_build_package.sh
86
87     publishers:
88         - email-notification:
89             email-prefix: '[sfc]'