Convert verify and merge nodes to use new build label
[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: centos7-java-builder-2c-8g
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         - opendaylight-infra-parameters:
39             project: '{project}'
40             branch: '{branch}'
41             refspec: 'refs/heads/{branch}'
42             artifacts: '{archive-artifacts}'
43
44     scm:
45         - gerrit-trigger-scm:
46             refspec: '$GERRIT_REFSPEC'
47             choosing-strategy: 'gerrit'
48
49     wrappers:
50         - opendaylight-infra-wrappers:
51             build-timeout: '{build-timeout}'
52
53     triggers:
54         - gerrit:
55             server-name: 'OpenDaylight'
56             trigger-on:
57                 - patchset-created-event:
58                     exclude-drafts: 'false'
59                     exclude-trivial-rebase: 'false'
60                     exclude-no-code-change: 'false'
61                 - draft-published-event
62                 - comment-added-contains-event:
63                     comment-contains-value: 'recheck'
64                 - comment-added-contains-event:
65                     comment-contains-value: 'reverify'
66             projects:
67               - project-compare-type: 'ANT'
68                 project-pattern: 'sfc'
69                 branches:
70                   - branch-compare-type: 'ANT'
71                     branch-pattern: '**/{branch}'
72                 file-paths:
73                     - compare-type: ANT
74                       pattern: sfc-py/**
75
76     builders:
77         - shell: |
78             virtualenv $WORKSPACE/venv-tox
79             source $WORKSPACE/venv-tox/bin/activate
80             pip install tox argparse
81             tox --version
82             cd $WORKSPACE/sfc-py
83             tox
84             ./jenkins_build_package.sh
85
86     publishers:
87         - email-notification:
88             email-prefix: '[sfc]'