285680532068d6fd2bbf8a76995f2e7807efe085
[releng.git] / jjb / samplevnf / samplevnf.yaml
1 ---
2 - project:
3     name: samplevnf
4
5     project: '{name}'
6
7     jobs:
8       - 'rapid-prox-build-{stream}'
9       - 'rapid-prox-verify-{stream}'
10
11     stream:
12       - master:
13           branch: '{stream}'
14           gs-pathname: 'artifacts.opnfv.org/samplevnf/images'
15           tag: 'latest'
16           disabled: false
17       - jerma:
18           branch: 'stable/{stream}'
19           gs-pathname: 'artifacts.opnfv.org/samplevnf/images'
20           tag: '{stream}'
21           disabled: false
22
23 - job-template:
24     name: 'rapid-prox-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/rapidvm/dib
58           bash build-image.sh -g {gs-pathname} -i {tag}
59
60 - job-template:
61     name: 'rapid-prox-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             - comment-added-contains-event:
89                 comment-contains-value: 'recheck'
90             - comment-added-contains-event:
91                 comment-contains-value: 'reverify'
92           projects:
93             - project-compare-type: 'ANT'
94               project-pattern: '{project}'
95               branches:
96                 - branch-compare-type: 'ANT'
97                   branch-pattern: '**/{branch}'
98
99     builders:
100       - shell: |
101           sudo pip install tox-pip-version
102           cd $WORKSPACE && tox -e docs
103           cd $WORKSPACE/rapidvm/dib
104           bash build-image.sh -g {gs-pathname} -i {tag} -v