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