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