5a87bf4416777bb38a5b4a4e914ee5c7f0755269
[releng.git] / jjb / vnf_forwarding_graph / vnf_forwarding_graph.yml
1 - project:
2     name: vnf_forwarding_graph
3     jobs:
4         - 'vnf_forwarding_graph-test'
5         - 'vnf_forwarding_graph-daily-{stream}'
6         - 'vnf_forwarding_graph-merge'
7         - 'vnf_forwarding_graph-verify'
8
9     # stream:    branch with - in place of / (eg. stable-helium)
10     # branch:    branch (eg. stable/helium)
11     stream:
12         - master:
13             branch: 'master'
14
15     project: 'vnf_forwarding_graph'
16     somevar: 'foo'
17
18 - job-template:
19     name: vnf_forwarding_graph-test
20
21     logrotate:
22         daysToKeep: 30
23         numToKeep: 10
24         artifactDaysToKeep: -1
25         artifactNumToKeep: -1
26
27     builders:
28         - shell: |
29             echo "Hello world from vnf_forwarding_graph"
30
31 - job-template:
32     name: 'vnf_forwarding_graph-daily-{stream}'
33
34     # Job template for daily builders
35     #
36     # Required Variables:
37     #     stream:    branch with - in place of / (eg. stable)
38     #     branch:    branch (eg. stable)
39
40     varsetabove: '{somevar}'
41
42     logrotate:
43         daysToKeep: '{build-days-to-keep}'
44         numToKeep: '{build-num-to-keep}'
45         artifactDaysToKeep: '{build-artifact-days-to-keep}'
46         artifactNumToKeep: '{build-artifact-num-to-keep}'
47
48     parameters:
49         - project-parameter:
50             project: '{project}'
51
52     scm:
53         - git-scm:
54             credentials-id: '{ssh-credentials}'
55             refspec: ''
56             branch: '{branch}'
57
58     triggers:
59         - timed: 'H H * * *'
60
61     prebuilders:
62         - test-macro
63
64     builders:
65         - shell: |
66             pwd
67             find .
68             echo "Hello world from vnf_forwarding_graph {somevar} daily"
69
70     postbuilders:
71         - test-macro
72
73 - job-template:
74     name: 'vnf_forwarding_graph-verify'
75
76     logrotate:
77         daysToKeep: 30
78         numToKeep: 10
79         artifactDaysToKeep: -1
80         artifactNumToKeep: -1
81
82     parameters:
83         - project-parameter:
84             project: '{project}'
85         - gerrit-parameter:
86             branch: 'master'
87     scm:
88         - gerrit-trigger-scm:
89             credentials-id: '{ssh-credentials}'
90             refspec: '$GERRIT_REFSPEC'
91             choosing-strategy: 'gerrit'
92
93     triggers:
94         - gerrit:
95             trigger-on:
96                 - patchset-created-event:
97                     exclude-drafts: 'false'
98                     exclude-trivial-rebase: 'false'
99                     exclude-no-code-change: 'false'
100                 - draft-published-event
101                 - comment-added-contains-event:
102                     comment-contains-value: 'recheck'
103                 - comment-added-contains-event:
104                     comment-contains-value: 'reverify'
105             projects:
106               - project-compare-type: 'ANT'
107                 project-pattern: 'vnf_forwarding_graph'
108                 branches:
109                   - branch-compare-type: 'ANT'
110                     branch-pattern: '**/master'
111
112     builders:
113         - shell: |
114             pwd
115             find .
116             echo "verify logic goes here"
117
118 - job-template:
119     name: 'vnf_forwarding_graph-merge'
120
121     # builder-merge job to run JJB update
122     #
123     # This job's purpose is to update all the JJB
124
125     logrotate:
126         daysToKeep: 30
127         numToKeep: 40
128         artifactDaysToKeep: -1
129         artifactNumToKeep: 5
130
131     parameters:
132         - project-parameter:
133             project: '{project}'
134         - gerrit-parameter:
135             branch: 'master'
136
137     scm:
138         - gerrit-trigger-scm:
139             credentials-id: '{ssh-credentials}'
140             refspec: ''
141             choosing-strategy: 'default'
142
143     triggers:
144         - gerrit:
145             trigger-on:
146                 - change-merged-event
147                 - comment-added-contains-event:
148                     comment-contains-value: 'remerge'
149             projects:
150               - project-compare-type: 'ANT'
151                 project-pattern: 'vnf_forwarding_graph'
152                 branches:
153                     - branch-compare-type: 'ANT'
154                       branch-pattern: '**/master'
155
156     builders:
157         - shell: |
158             pwd
159             find .
160             echo "merge logic goes here"
161