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