Merge "Enable upload of vpp & hicn verify docs to s3 7day retention bucket"
[ci-management.git] / jjb / vpp / docs.yaml
1 ---
2 - project:
3     name: docs
4     jobs:
5       - 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
6       - 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
7
8     project: 'vpp'
9     executor-arch: 'x86_64'
10     os:
11       - 'ubuntu2004'
12       - 'ubuntu2204'
13     stream:
14       - 'master':
15           branch: 'master'
16           branch-refspec: ''
17       - '2206':
18           branch: 'stable/2206'
19           branch-refspec: ''
20       - '2210':
21           branch: 'stable/2210'
22           branch-refspec: ''
23     exclude:
24       # os deprecated in 22.10
25       - stream: '2210'
26         os: 'ubuntu2004'
27       # os deprecated in master
28       - stream: 'master'
29         os: 'ubuntu2004'
30       # os added in 22.10
31       - stream: '2206'
32         os: 'ubuntu2204'
33
34 - job-template:
35     name: 'vpp-docs-verify-{stream}-{os}-{executor-arch}'
36
37     project-type: freestyle
38     node: 'builder-{os}-prod-{executor-arch}'
39     concurrent: true
40     allow-empty: 'true'
41     fingerprint: false
42     only-if-success: true
43     default-excludes: false
44
45     properties:
46       - lf-infra-properties:
47           build-days-to-keep: "{build-days-to-keep}"
48
49     parameters:
50       - project-parameter:
51           project: '{project}'
52       - gerrit-parameter:
53           branch: '{branch}'
54       - os-parameter:
55           os: '{os}'
56       - stream-parameter:
57           stream: '{stream}'
58       - gerrit-refspec-parameter:
59           refspec: '{branch-refspec}'
60
61     scm:
62       - gerrit-trigger-scm:
63           credentials-id: 'jenkins-gerrit-credentials'
64           refspec: '$GERRIT_REFSPEC'
65           choosing-strategy: 'gerrit'
66
67     wrappers:
68       - fdio-infra-wrappers:
69           build-timeout: '{build-timeout}'
70
71     triggers:
72       - gerrit-trigger-checkstyle:
73           name: '{project}'
74           branch: '{branch}'
75
76     builders:
77       - shell:
78           !include-raw-escape:
79           - ../scripts/setup_executor_env.sh
80       - shell:
81           !include-raw-escape:
82           - ../scripts/setup_vpp_ubuntu_docker_test.sh
83       - shell:
84           !include-raw-escape:
85           - ../scripts/vpp/docs.sh
86
87     publishers:
88       - fdio-infra-publish-docs-7day
89       - fdio-infra-publish
90
91 - job-template:
92     name: 'vpp-docs-merge-{stream}-{os}-{executor-arch}'
93
94     project-type: freestyle
95     node: 'builder-{os}-prod-{executor-arch}'
96     concurrent: false
97     allow-empty: 'true'
98     fingerprint: false
99     only-if-success: true
100     default-excludes: false
101
102     properties:
103       - lf-infra-properties:
104           build-days-to-keep: "{build-days-to-keep}"
105
106     parameters:
107       - project-parameter:
108           project: '{project}'
109       - gerrit-parameter:
110           branch: '{branch}'
111       - os-parameter:
112           os: '{os}'
113       - stream-parameter:
114           stream: '{stream}'
115
116     scm:
117       - gerrit-trigger-scm:
118           credentials-id: 'jenkins-gerrit-credentials'
119           refspec: ''
120           choosing-strategy: 'default'
121
122     wrappers:
123       - fdio-infra-wrappers:
124           build-timeout: '{build-timeout}'
125
126     triggers:
127       - reverse:
128           jobs: 'vpp-merge-{stream}-{os}-{executor-arch}'
129           result: 'success'
130       - gerrit:
131           server-name: 'Primary'
132           trigger-on:
133             - comment-added-contains-event:
134                 comment-contains-value: 'run-docs'
135           projects:
136             - project-compare-type: 'ANT'
137               project-pattern: '{project}'
138               branches:
139                 - branch-compare-type: 'ANT'
140                   branch-pattern: '**/{branch}'
141           skip-vote:
142             successful: true
143             failed: true
144             unstable: true
145             notbuilt: true
146
147     builders:
148       - shell:
149           !include-raw-escape:
150           - ../scripts/setup_executor_env.sh
151       - shell:
152           !include-raw-escape:
153           - ../scripts/setup_vpp_ubuntu_docker_test.sh
154       - shell:
155           !include-raw-escape:
156           - ../scripts/vpp/docs.sh
157
158     publishers:
159       - fdio-infra-publish-docs
160       - fdio-infra-publish