cb5dc95c109ec4d808562059f1b9249ef2f87cb6
[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     logrotate:
22         daysToKeep: 30
23         numToKeep: 10
24         artifactDaysToKeep: -1
25         artifactNumToKeep: -1
26
27     builders:
28         - shell: |
29             echo "Hello world from armband"
30
31 - job-template:
32     name: 'armband-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     parameters:
43         - project-parameter:
44             project: '{project}'
45
46     scm:
47         - git-scm:
48             credentials-id: '{ssh-credentials}'
49             refspec: ''
50             branch: '{branch}'
51
52     triggers:
53         - timed: 'H H * * *'
54
55     prebuilders:
56         - test-macro
57
58     builders:
59         - shell: |
60             pwd
61             find .
62             echo "Hello world from armband {somevar} daily"
63
64     postbuilders:
65         - test-macro
66
67 - job-template:
68     name: 'armband-verify'
69
70     node: ericsson-build
71
72     logrotate:
73         daysToKeep: 30
74         numToKeep: 10
75         artifactDaysToKeep: -1
76         artifactNumToKeep: -1
77
78     parameters:
79         - project-parameter:
80             project: '{project}'
81         - gerrit-parameter:
82             branch: 'master'
83         - string:
84             name: GIT_BASE
85             default: https://gerrit.opnfv.org/gerrit/$PROJECT
86             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
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: 'armband'
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: 'armband-merge'
120
121     # builder-merge job to run JJB update
122     #
123     # This job's purpose is to update all the JJB
124
125     parameters:
126         - project-parameter:
127             project: '{project}'
128         - gerrit-parameter:
129             branch: 'master'
130         - string:
131             name: GIT_BASE
132             default: https://gerrit.opnfv.org/gerrit/$PROJECT
133             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
134
135     scm:
136         - gerrit-trigger-scm:
137             credentials-id: '{ssh-credentials}'
138             refspec: ''
139             choosing-strategy: 'default'
140
141     triggers:
142         - gerrit:
143             trigger-on:
144                 - change-merged-event
145                 - comment-added-contains-event:
146                     comment-contains-value: 'remerge'
147             projects:
148               - project-compare-type: 'ANT'
149                 project-pattern: 'armband'
150                 branches:
151                     - branch-compare-type: 'ANT'
152                       branch-pattern: '**/master'
153
154     builders:
155         - shell: |
156             pwd
157             find .
158             echo "merge logic goes here"