Merge "Add Workspace Permission Fix Wrapper for SampleVNF"
[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     wrappers:
29       - ssh-agent-wrapper
30       - fix-workspace-permissions
31
32     parameters:
33       - project-parameter:
34           project: '{project}'
35           branch: '{branch}'
36       # yamllint disable rule:line-length
37       - string:
38           name: GIT_BASE
39           default: https://gerrit.opnfv.org/gerrit/$PROJECT
40           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
41       # yamllint enable rule:line-length
42       - 'opnfv-build-ubuntu-defaults'
43
44     scm:
45       - git-scm-gerrit
46
47     triggers:
48       - gerrit:
49           server-name: 'gerrit.opnfv.org'
50           trigger-on:
51             - change-merged-event
52           projects:
53             - project-compare-type: 'ANT'
54               project-pattern: '{project}'
55               branches:
56                 - branch-compare-type: 'ANT'
57                   branch-pattern: '**/{branch}'
58
59     builders:
60       - shell: |
61           cd $WORKSPACE/rapidvm/dib
62           bash build-image.sh -g {gs-pathname} -i {tag} -w $WORKSPACE
63
64 - job-template:
65     name: 'rapid-prox-verify-{stream}'
66
67     disabled: '{obj:disabled}'
68
69     wrappers:
70       - ssh-agent-wrapper
71       - fix-workspace-permissions
72
73     parameters:
74       - project-parameter:
75           project: '{project}'
76           branch: '{branch}'
77       # yamllint disable rule:line-length
78       - string:
79           name: GIT_BASE
80           default: https://gerrit.opnfv.org/gerrit/$PROJECT
81           description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
82       # yamllint enable rule:line-length
83       - 'opnfv-build-ubuntu-defaults'
84
85     scm:
86       - git-scm-gerrit
87
88     triggers:
89       - gerrit:
90           server-name: 'gerrit.opnfv.org'
91           trigger-on:
92             - patchset-created-event:
93                 exclude-drafts: 'false'
94                 exclude-trivial-rebase: 'false'
95                 exclude-no-code-change: 'false'
96             - comment-added-contains-event:
97                 comment-contains-value: 'recheck'
98             - comment-added-contains-event:
99                 comment-contains-value: 'reverify'
100           projects:
101             - project-compare-type: 'ANT'
102               project-pattern: '{project}'
103               branches:
104                 - branch-compare-type: 'ANT'
105                   branch-pattern: '**/{branch}'
106
107     builders:
108       - shell: |
109           sudo pip install tox-pip-version
110           cd $WORKSPACE && tox -e docs
111           cd $WORKSPACE/rapidvm/dib
112           bash build-image.sh -g {gs-pathname} -i {tag} -v -w $WORKSPACE