blob: d0f74802d1ef6a4f632c341550fa7a0358c9070c [file] [log] [blame]
Zack Williams7468c362018-04-06 09:52:30 -07001---
2# CORD documentation verification and publish tasks
3
4- project:
Zack Williamsbf4cfe52018-05-14 16:29:57 -07005 name: verify-docs-legacy
6
7 # add repos that have documentation to the project list in both jobs
8 jobs:
9 - 'verify-docs-legacy':
10 project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$'
11 branch-regexp: '{supported-branches-regexp}'
12
13- project:
Zack Williams7468c362018-04-06 09:52:30 -070014 name: verify-docs
15
16 # add repos that have documentation to the project list in both jobs
17 jobs:
18 - 'verify-documentation':
Zack Williamsbf4cfe52018-05-14 16:29:57 -070019 project-regexp: '^(docs|cord-tester|xos|xos-gui|xos-tosca)$'
20 branch-regexp: '{modern-branches-regexp}'
Zack Williams7468c362018-04-06 09:52:30 -070021
22- project:
23 name: publish-docs
24
25 jobs:
26 - 'publish-documentation':
27 project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$'
28 branch-regexp: '{supported-branches-regexp}'
29
30# Documentation job templates
31- job-template:
Zack Williamsbf4cfe52018-05-14 16:29:57 -070032 id: verify-docs-legacy
33 name: "verify-docs-legacy"
34
35 triggers:
36 - cord-infra-gerrit-trigger-patchset:
37 gerrit-server-name: '{gerrit-server-name}'
38 project-regexp: '{project-regexp}'
39 branch-regexp: '{branch-regexp}'
40 file-include-regexp: '{doc-files-regexp}'
41 dependency-jobs: '{dependency-jobs}'
42
43 properties:
44 - cord-infra-properties:
45 build-days-to-keep: '{build-days-to-keep}'
46 artifact-num-to-keep: '{artifact-num-to-keep}'
47
48 wrappers:
49 - lf-infra-wrappers:
50 build-timeout: '{build-timeout}'
51 jenkins-ssh-credential: '{jenkins-ssh-credential}'
52
53 scm:
54 - cord-infra-gerrit-repo-scm:
55 manifest-url: '{gerrit-server-url}/{cord-repo-manifest}'
56 branch: '$GERRIT_BRANCH'
57 destination-dir: 'cord'
58
59 node: '{build-node}'
60 project-type: freestyle
61 concurrent: false
62
63 builders:
64 - cord-infra-gerrit-repo-patch:
65 destination-dir: 'cord'
66 project: '$GERRIT_PROJECT'
67 change-number: '$GERRIT_CHANGE_NUMBER'
68 patchset-number: '$GERRIT_PATCHSET_NUMBER'
69 - shell: |
70 cd cord/build/docs
71 make test
72
73- job-template:
Zack Williamsc27ca2d2018-04-11 13:16:45 -070074 id: verify-documentation
Zack Williams7468c362018-04-06 09:52:30 -070075 name: "verify-documentation"
76
77 triggers:
78 - cord-infra-gerrit-trigger-patchset:
79 gerrit-server-name: '{gerrit-server-name}'
Zack Williamsc27ca2d2018-04-11 13:16:45 -070080 project-regexp: '{project-regexp}'
Zack Williams7468c362018-04-06 09:52:30 -070081 branch-regexp: '{branch-regexp}'
Zack Williamsc27ca2d2018-04-11 13:16:45 -070082 file-include-regexp: '{doc-files-regexp}'
Zack Williams7468c362018-04-06 09:52:30 -070083 dependency-jobs: '{dependency-jobs}'
84
85 properties:
86 - cord-infra-properties:
87 build-days-to-keep: '{build-days-to-keep}'
88 artifact-num-to-keep: '{artifact-num-to-keep}'
89
90 wrappers:
91 - lf-infra-wrappers:
92 build-timeout: '{build-timeout}'
93 jenkins-ssh-credential: '{jenkins-ssh-credential}'
94
95 scm:
96 - cord-infra-gerrit-repo-scm:
Zack Williamsc27ca2d2018-04-11 13:16:45 -070097 manifest-url: '{gerrit-server-url}/{cord-repo-manifest}'
Zack Williams7468c362018-04-06 09:52:30 -070098 branch: '$GERRIT_BRANCH'
99 destination-dir: 'cord'
100
101 node: '{build-node}'
102 project-type: freestyle
103 concurrent: false
104
105 builders:
106 - cord-infra-gerrit-repo-patch:
Zack Williamsc27ca2d2018-04-11 13:16:45 -0700107 destination-dir: 'cord'
Zack Williams7468c362018-04-06 09:52:30 -0700108 project: '$GERRIT_PROJECT'
109 change-number: '$GERRIT_CHANGE_NUMBER'
110 patchset-number: '$GERRIT_PATCHSET_NUMBER'
111 - shell: |
Zack Williamsbf4cfe52018-05-14 16:29:57 -0700112 cd cord/docs
Zack Williams7468c362018-04-06 09:52:30 -0700113 make test
114
Zack Williams7468c362018-04-06 09:52:30 -0700115- job-template:
Zack Williamsc27ca2d2018-04-11 13:16:45 -0700116 id: publish-documentation
Zack Williams7468c362018-04-06 09:52:30 -0700117 name: 'publish-documentation'
118
119 triggers:
120 - cord-infra-gerrit-trigger-merge:
121 gerrit-server-name: '{gerrit-server-name}'
122 project-regexp: '{project-regexp}'
123 branch-regexp: '{branch-regexp}'
Zack Williamsc27ca2d2018-04-11 13:16:45 -0700124 file-include-regexp: '{doc-files-regexp}'
Zack Williams7468c362018-04-06 09:52:30 -0700125 dependency-jobs: '{dependency-jobs}'
126
127 properties:
128 - cord-infra-properties:
129 build-days-to-keep: '{build-days-to-keep}'
130 artifact-num-to-keep: '{artifact-num-to-keep}'
131
132 wrappers:
133 - lf-infra-wrappers:
134 build-timeout: '{build-timeout}'
135 jenkins-ssh-credential: '{jenkins-ssh-credential}'
136
137 scm:
138 - cord-infra-gerrit-repo-scm:
Zack Williamsc27ca2d2018-04-11 13:16:45 -0700139 manifest-url: '{gerrit-server-url}/{cord-repo-manifest}'
Zack Williams7468c362018-04-06 09:52:30 -0700140 branch: '$GERRIT_BRANCH'
141 destination-dir: 'cord'
142
143 node: '{build-node}'
144 project-type: freestyle
145 concurrent: false
146
147 builders:
148 - shell: |
149 cd cord/build/docs
150 make build
151
152# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
Zack Williamsc27ca2d2018-04-11 13:16:45 -0700153 publishers:
154 - ssh:
155 site: 'CORD Wiki'
156 source: 'cord/build/docs/_book/**'
157 remove-prefix: 'cord/build/docs/_book'
158 target: '//var/www/guide/$GERRIT_BRANCH'
159 - ssh:
160 site: 'CORD Wiki'
161 source: 'cord/build/docs/xos/swagger/**'
162 remove-prefix: 'cord/build/docs/xos'
163 target: '//var/www/guide/$GERRIT_BRANCH'
Zack Williams7468c362018-04-06 09:52:30 -0700164