ec6776f81e7ad5166d469af7ed685949611cca8b
[releng.git] / jjb / nfvbench / nfvbench.yaml
1 ---
2 - project:
3     name: nfvbench
4
5     project: '{name}'
6
7     jobs:
8       - 'nfvbench-build-{stream}'
9       - 'nfvbench-verify-{stream}'
10
11     stream:
12       - master:
13           branch: '{stream}'
14           gs-pathname: ''
15           docker-tag: 'latest'
16           disabled: false
17       - gambia:
18           branch: 'stable/{stream}'
19           gs-pathname: '/{stream}'
20           docker-tag: 'stable'
21           disabled: false
22
23 - job-template:
24     name: 'nfvbench-build-{stream}'
25
26     disabled: '{obj:disabled}'
27
28     parameters:
29       - project-parameter:
30           project: '{project}'
31           branch: '{branch}'
32       # yamllint disable rule:line-length
33       - string:
34           name: GIT_BASE
35           default: https://gerrit.opnfv.org/gerrit/$PROJECT
36           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
37       # yamllint enable rule:line-length
38       - 'opnfv-build-ubuntu-defaults'
39
40     scm:
41       - git-scm-gerrit
42
43     triggers:
44       - gerrit:
45           server-name: 'gerrit.opnfv.org'
46           trigger-on:
47             - comment-added-contains-event:
48                 comment-contains-value: 'buildvm'
49           projects:
50             - project-compare-type: 'ANT'
51               project-pattern: '{project}'
52               branches:
53                 - branch-compare-type: 'ANT'
54                   branch-pattern: '**/{branch}'
55
56     builders:
57       - shell: |
58           cd $WORKSPACE/nfvbenchvm/dib
59           bash build-image.sh
60
61 - job-template:
62     name: 'nfvbench-verify-{stream}'
63
64     disabled: '{obj:disabled}'
65
66     parameters:
67       - project-parameter:
68           project: '{project}'
69           branch: '{branch}'
70       # yamllint disable rule:line-length
71       - string:
72           name: GIT_BASE
73           default: https://gerrit.opnfv.org/gerrit/$PROJECT
74           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
75       # yamllint enable rule:line-length
76       - 'opnfv-build-ubuntu-defaults'
77
78     scm:
79       - git-scm-gerrit
80
81     triggers:
82       - gerrit:
83           server-name: 'gerrit.opnfv.org'
84           trigger-on:
85             - patchset-created-event:
86                 exclude-drafts: 'false'
87                 exclude-trivial-rebase: 'false'
88                 exclude-no-code-change: 'false'
89           projects:
90             - project-compare-type: 'ANT'
91               project-pattern: '{project}'
92               branches:
93                 - branch-compare-type: 'ANT'
94                   branch-pattern: '**/{branch}'
95
96     builders:
97       - shell: |
98           cd $WORKSPACE && tox