Merge "Add jjb template for Compass BGS track"
[releng.git] / jjb / pharos / pharos.yml
1 - project:
2     name: pharos
3     jobs:
4         - 'pharos-test'
5         - 'pharos-daily-{stream}'
6         - 'pharos-merge'
7         - 'pharos-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: 'pharos'
16     somevar: 'foo'
17
18 - job-template:
19     name: pharos-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 pharos"
32
33 - job-template:
34     name: 'pharos-daily-{stream}'
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     project-type: freestyle
43     varsetabove: '{somevar}'
44
45     logrotate:
46         daysToKeep: '{build-days-to-keep}'
47         numToKeep: '{build-num-to-keep}'
48         artifactDaysToKeep: '{build-artifact-days-to-keep}'
49         artifactNumToKeep: '{build-artifact-num-to-keep}'
50
51     parameters:
52         - project-parameter:
53             project: '{project}'
54
55     scm:
56         - git-scm:
57             credentials-id: '{ssh-credentials}'
58             refspec: ''
59             branch: '{branch}'
60
61     wrappers:
62         - ssh-agent-credentials:
63             user: '{ssh-credentials}'
64
65     triggers:
66         - timed: 'H H * * *'
67
68     prebuilders:
69         - test-macro
70
71     builders:
72         - shell:
73             !include-raw build-upload-docu.sh
74
75     postbuilders:
76         - test-macro
77
78 - job-template:
79     name: 'pharos-verify'
80
81     project-type: freestyle
82
83     logrotate:
84         daysToKeep: 30
85         numToKeep: 10
86         artifactDaysToKeep: -1
87         artifactNumToKeep: -1
88
89     parameters:
90         - project-parameter:
91             project: '{project}'
92         - gerrit-parameter:
93             branch: 'master'
94     scm:
95         - gerrit-trigger-scm:
96             credentials-id: '{ssh-credentials}'
97             refspec: '$GERRIT_REFSPEC'
98             choosing-strategy: 'gerrit'
99
100     wrappers:
101         - ssh-agent-credentials:
102             user: '{ssh-credentials}'
103
104     triggers:
105         - gerrit:
106             trigger-on:
107                 - patchset-created-event:
108                     exclude-drafts: 'false'
109                     exclude-trivial-rebase: 'false'
110                     exclude-no-code-change: 'false'
111                 - draft-published-event
112                 - comment-added-contains-event:
113                     comment-contains-value: 'recheck'
114                 - comment-added-contains-event:
115                     comment-contains-value: 'reverify'
116             projects:
117               - project-compare-type: 'ANT'
118                 project-pattern: 'pharos'
119                 branches:
120                   - branch-compare-type: 'ANT'
121                     branch-pattern: '**/master'
122
123     builders:
124         - shell:
125             !include-raw build-docu-verify.sh
126
127 - job-template:
128     name: 'pharos-merge'
129
130     # builder-merge job to run JJB update
131     #
132     # This job's purpose is to update all the JJB
133
134     project-type: freestyle
135
136     logrotate:
137         daysToKeep: 30
138         numToKeep: 40
139         artifactDaysToKeep: -1
140         artifactNumToKeep: 5
141
142     parameters:
143         - project-parameter:
144             project: '{project}'
145         - gerrit-parameter:
146             branch: 'master'
147
148     scm:
149         - gerrit-trigger-scm:
150             credentials-id: '{ssh-credentials}'
151             refspec: ''
152             choosing-strategy: 'default'
153
154     wrappers:
155         - ssh-agent-credentials:
156             user: '{ssh-credentials}'
157
158     triggers:
159         - gerrit:
160             trigger-on:
161                 - change-merged-event
162                 - comment-added-contains-event:
163                     comment-contains-value: 'remerge'
164             projects:
165               - project-compare-type: 'ANT'
166                 project-pattern: 'pharos'
167                 branches:
168                     - branch-compare-type: 'ANT'
169                       branch-pattern: '**/master'
170
171     builders:
172         - shell:
173             !include-raw build-upload-docu.sh
174