Adjust nfvbench build verification
[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             - change-merged-event
48           projects:
49             - project-compare-type: 'ANT'
50               project-pattern: '{project}'
51               branches:
52                 - branch-compare-type: 'ANT'
53                   branch-pattern: '**/{branch}'
54
55     builders:
56       - shell: |
57           cd $WORKSPACE/nfvbenchvm/dib
58           bash build-image.sh
59
60 - job-template:
61     name: 'nfvbench-verify-{stream}'
62
63     disabled: '{obj:disabled}'
64
65     parameters:
66       - project-parameter:
67           project: '{project}'
68           branch: '{branch}'
69       # yamllint disable rule:line-length
70       - string:
71           name: GIT_BASE
72           default: https://gerrit.opnfv.org/gerrit/$PROJECT
73           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
74       # yamllint enable rule:line-length
75       - 'opnfv-build-ubuntu-defaults'
76
77     scm:
78       - git-scm-gerrit
79
80     triggers:
81       - gerrit:
82           server-name: 'gerrit.opnfv.org'
83           trigger-on:
84             - patchset-created-event:
85                 exclude-drafts: 'false'
86                 exclude-trivial-rebase: 'false'
87                 exclude-no-code-change: 'false'
88           projects:
89             - project-compare-type: 'ANT'
90               project-pattern: '{project}'
91               branches:
92                 - branch-compare-type: 'ANT'
93                   branch-pattern: '**/{branch}'
94
95     builders:
96       - shell: |
97           cd $WORKSPACE && tox
98           cd $WORKSPACE/nfvbenchvm/dib
99           bash verify-image.sh -v