Merge "Modify logs publisher"
[ci-management.git] / jjb / hicn / hicn-docs.yaml
1 ---
2 - project:
3     name: hicn-docs
4     jobs:
5       - 'hicn-docs-merge-{stream}'
6       - 'hicn-docs-verify-{stream}'
7
8     project: 'hicn'
9     os:
10       - ubuntu1604:
11           repo-os-part: 'ubuntu.xenial.main'
12
13     stream:
14       - master:
15           branch: 'master'
16           repo-stream-part: 'master'
17     type:
18       - short
19       - long
20
21 - job-template:
22     name: 'hicn-docs-verify-{stream}'
23
24     project-type: freestyle
25     node: ubuntu1604-us
26     concurrent: true
27     archive-artifacts: '**/build/lib/doc/html/*'
28     allow-empty: 'true'
29     fingerprint: false
30     only-if-success: true
31     default-excludes: false
32
33     build-discarder:
34       daysToKeep: '{build-days-to-keep}'
35       numToKeep: '{build-num-to-keep}'
36       artifactDaysToKeep: '{build-artifact-days-to-keep}'
37       artifactNumToKeep: '{build-artifact-num-to-keep}'
38
39     parameters:
40       - project-parameter:
41           project: '{project}'
42       - gerrit-parameter:
43           branch: '{branch}'
44       - os-parameter:
45           os: 'ubuntu1604'
46       - maven-exec:
47           maven-version: 'mvn33-new'
48       - stream-parameter:
49           stream: '{stream}'
50       - string:
51           name: ARCHIVE_ARTIFACTS
52           default: '{archive-artifacts}'
53           description: Artifacts to archive to the logs server.
54
55     scm:
56       - gerrit-trigger-scm:
57           credentials-id: 'jenkins-gerrit-credentials'
58           refspec: '$GERRIT_REFSPEC'
59           choosing-strategy: 'gerrit'
60
61     wrappers:
62       - fdio-infra-wrappers:
63           build-timeout: '{build-timeout}'
64
65     triggers:
66       - gerrit-trigger-checkstyle:
67           name: '{project}'
68           branch: '{branch}'
69
70     builders:
71       - maven-target:
72           maven-version: 'mvn33-new'
73           goals: '--version'
74           settings: 'hicn-settings'
75           settings-type: cfp
76           global-settings: 'global-settings'
77           global-settings-type: cfp
78       - provide-maven-settings:
79           settings-file: 'hicn-settings'
80           global-settings-file: 'global-settings'
81       - shell:
82           !include-raw-escape: include-raw-hicn-docs.sh
83
84     publishers:
85       - lf-infra-publish
86       - naginator:
87           rerun-unstable-builds: false
88           max-failed-builds: 1
89           fixed-delay: 90
90
91 - job-template:
92     name: 'hicn-docs-merge-{stream}'
93
94     project-type: freestyle
95     node: ubuntu1604-us
96     concurrent: false
97     archive-artifacts: '**/build/lib/doc/html/*'
98     allow-empty: 'true'
99     fingerprint: false
100     only-if-success: true
101     default-excludes: false
102
103     build-discarder:
104       daysToKeep: '{build-days-to-keep}'
105       numToKeep: '{build-num-to-keep}'
106       artifactDaysToKeep: '{build-artifact-days-to-keep}'
107       artifactNumToKeep: '{build-artifact-num-to-keep}'
108
109     parameters:
110       - project-parameter:
111           project: '{project}'
112       - gerrit-parameter:
113           branch: '{branch}'
114       - os-parameter:
115           os: 'ubuntu1604'
116       - maven-exec:
117           maven-version: 'mvn33-new'
118       - stream-parameter:
119           stream: '{stream}'
120       - string:
121           name: ARCHIVE_ARTIFACTS
122           default: '{archive-artifacts}'
123           description: Artifacts to archive to the logs server.
124
125     scm:
126       - gerrit-trigger-scm:
127           credentials-id: 'jenkins-gerrit-credentials'
128           refspec: ''
129           choosing-strategy: 'default'
130
131     wrappers:
132       - fdio-infra-wrappers:
133           build-timeout: '{build-timeout}'
134
135     triggers:
136       - reverse:
137           jobs: 'hicn-merge-{stream}-ubuntu1604'
138           result: 'success'
139       - gerrit:
140           server-name: 'Primary'
141           trigger-on:
142             - comment-added-contains-event:
143                 comment-contains-value: 'run-docs'
144           projects:
145             - project-compare-type: 'ANT'
146               project-pattern: '{project}'
147               branches:
148                 - branch-compare-type: 'ANT'
149                   branch-pattern: '**/{branch}'
150           skip-vote:
151             successful: true
152             failed: true
153             unstable: true
154             notbuilt: true
155
156     builders:
157       - maven-target:
158           maven-version: 'mvn33-new'
159           goals: '--version'
160           settings: 'hicn-settings'
161           settings-type: cfp
162           global-settings: 'global-settings'
163           global-settings-type: cfp
164       - provide-maven-settings:
165           settings-file: 'hicn-settings'
166           global-settings-file: 'global-settings'
167       - shell:
168           !include-raw-escape: include-raw-hicn-docs.sh
169
170     publishers:
171       - lf-infra-publish
172       - naginator:
173           rerun-unstable-builds: false
174           max-failed-builds: 1
175           fixed-delay: 90