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