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