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