Merge "jjb: move 'node: master' 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     # 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 armband {somevar} daily"
69
70     postbuilders:
71         - test-macro
72
73 - job-template:
74     name: 'armband-verify'
75
76     node: ericsson-build
77
78     logrotate:
79         daysToKeep: 30
80         numToKeep: 10
81         artifactDaysToKeep: -1
82         artifactNumToKeep: -1
83
84     parameters:
85         - project-parameter:
86             project: '{project}'
87         - gerrit-parameter:
88             branch: 'master'
89         - string:
90             name: GIT_BASE
91             default: https://gerrit.opnfv.org/gerrit/$PROJECT
92             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
93     scm:
94         - gerrit-trigger-scm:
95             credentials-id: '{ssh-credentials}'
96             refspec: '$GERRIT_REFSPEC'
97             choosing-strategy: 'gerrit'
98
99     triggers:
100         - gerrit:
101             trigger-on:
102                 - patchset-created-event:
103                     exclude-drafts: 'false'
104                     exclude-trivial-rebase: 'false'
105                     exclude-no-code-change: 'false'
106                 - draft-published-event
107                 - comment-added-contains-event:
108                     comment-contains-value: 'recheck'
109                 - comment-added-contains-event:
110                     comment-contains-value: 'reverify'
111             projects:
112               - project-compare-type: 'ANT'
113                 project-pattern: 'armband'
114                 branches:
115                   - branch-compare-type: 'ANT'
116                     branch-pattern: '**/master'
117
118     builders:
119         - shell: |
120             pwd
121             find .
122             echo "verify logic goes here"
123
124 - job-template:
125     name: 'armband-merge'
126
127     # builder-merge job to run JJB update
128     #
129     # This job's purpose is to update all the JJB
130
131     logrotate:
132         daysToKeep: 30
133         numToKeep: 40
134         artifactDaysToKeep: -1
135         artifactNumToKeep: 5
136
137     parameters:
138         - project-parameter:
139             project: '{project}'
140         - gerrit-parameter:
141             branch: 'master'
142         - string:
143             name: GIT_BASE
144             default: https://gerrit.opnfv.org/gerrit/$PROJECT
145             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
146
147     scm:
148         - gerrit-trigger-scm:
149             credentials-id: '{ssh-credentials}'
150             refspec: ''
151             choosing-strategy: 'default'
152
153     triggers:
154         - gerrit:
155             trigger-on:
156                 - change-merged-event
157                 - comment-added-contains-event:
158                     comment-contains-value: 'remerge'
159             projects:
160               - project-compare-type: 'ANT'
161                 project-pattern: 'armband'
162                 branches:
163                     - branch-compare-type: 'ANT'
164                       branch-pattern: '**/master'
165
166     builders:
167         - shell: |
168             pwd
169             find .
170             echo "merge logic goes here"