Need to remove pipe and commands before the include-raw
[releng.git] / jjb / opnfvdocs / opnfvdocs.yml
1 - project:
2     name: opnfvdocs
3     jobs:
4         - 'opnfvdocs-daily-{stream}'
5         - 'opnfvdocs-merge'
6         - 'opnfvdocs-verify'
7
8     # stream:    branch with - in place of / (eg. stable-helium)
9     # branch:    branch (eg. stable/helium)
10     stream:
11         - master:
12             branch: 'master'
13
14     project: 'opnfvdocs'
15
16 - job-template:
17     name: 'opnfvdocs-daily-{stream}'
18
19     # Job template for daily builders
20     #
21     # Required Variables:
22     #     stream:    branch with - in place of / (eg. stable)
23     #     branch:    branch (eg. stable)
24
25     project-type: freestyle
26
27     logrotate:
28         daysToKeep: '{build-days-to-keep}'
29         numToKeep: '{build-num-to-keep}'
30         artifactDaysToKeep: '{build-artifact-days-to-keep}'
31         artifactNumToKeep: '{build-artifact-num-to-keep}'
32
33     parameters:
34         - project-parameter:
35             project: '{project}'
36
37     scm:
38         - git-scm:
39             credentials-id: '{ssh-credentials}'
40             refspec: ''
41             branch: '{branch}'
42
43     wrappers:
44         - ssh-agent-credentials:
45             user: '{ssh-credentials}'
46
47     triggers:
48         - timed: 'H H * * *'
49
50     builders:
51         - shell:
52             !include-raw build-docu.sh
53
54 - job-template:
55     name: 'opnfvdocs-verify'
56
57     project-type: freestyle
58
59     logrotate:
60         daysToKeep: 30
61         numToKeep: 10
62         artifactDaysToKeep: -1
63         artifactNumToKeep: -1
64
65     parameters:
66         - project-parameter:
67             project: '{project}'
68         - gerrit-parameter:
69             branch: 'master'
70     scm:
71         - gerrit-trigger-scm:
72             credentials-id: '{ssh-credentials}'
73             refspec: '$GERRIT_REFSPEC'
74             choosing-strategy: 'gerrit'
75
76     wrappers:
77         - ssh-agent-credentials:
78             user: '{ssh-credentials}'
79
80     triggers:
81         - gerrit:
82             trigger-on:
83                 - patchset-created-event:
84                     exclude-drafts: 'false'
85                     exclude-trivial-rebase: 'false'
86                     exclude-no-code-change: 'false'
87                 - draft-published-event
88                 - comment-added-contains-event:
89                     comment-contains-value: 'recheck'
90                 - comment-added-contains-event:
91                     comment-contains-value: 'reverify'
92             projects:
93               - project-compare-type: 'ANT'
94                 project-pattern: 'opnfvdocs'
95                 branches:
96                   - branch-compare-type: 'ANT'
97                     branch-pattern: '**/master'
98
99     builders:
100         - shell:
101             !include-raw build-docu.sh
102
103 - job-template:
104     name: 'opnfvdocs-merge'
105
106     # builder-merge job to run JJB update
107     #
108     # This job's purpose is to update all the JJB
109
110     project-type: freestyle
111
112     logrotate:
113         daysToKeep: 30
114         numToKeep: 40
115         artifactDaysToKeep: -1
116         artifactNumToKeep: 5
117
118     parameters:
119         - project-parameter:
120             project: '{project}'
121         - gerrit-parameter:
122             branch: 'master'
123
124     scm:
125         - gerrit-trigger-scm:
126             credentials-id: '{ssh-credentials}'
127             refspec: ''
128             choosing-strategy: 'default'
129
130     wrappers:
131         - ssh-agent-credentials:
132             user: '{ssh-credentials}'
133
134     triggers:
135         - gerrit:
136             trigger-on:
137                 - change-merged-event
138                 - comment-added-contains-event:
139                     comment-contains-value: 'remerge'
140             projects:
141               - project-compare-type: 'ANT'
142                 project-pattern: 'opnfvdocs'
143                 branches:
144                     - branch-compare-type: 'ANT'
145                       branch-pattern: '**/master'
146
147     builders:
148         - shell:
149             !include-raw build-docu.sh