blob: 1cc480fd2d884d20db67a38da11d5cc54fd97cd8 [file] [log] [blame]
Zack Williams7468c362018-04-06 09:52:30 -07001---
2# CORD documentation verification and publish tasks
3
4- project:
5 name: verify-docs
6
7 # add repos that have documentation to the project list in both jobs
8 jobs:
9 - 'verify-documentation':
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:
14 name: publish-docs
15
16 jobs:
17 - 'publish-documentation':
18 project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$'
19 branch-regexp: '{supported-branches-regexp}'
20
21# Documentation job templates
22- job-template:
23 name: "verify-documentation"
24
25 triggers:
26 - cord-infra-gerrit-trigger-patchset:
27 gerrit-server-name: '{gerrit-server-name}'
28 project-regexp: '$GERRIT_PROJECT'
29 branch-regexp: '{branch-regexp}'
30 dependency-jobs: '{dependency-jobs}'
31
32 properties:
33 - cord-infra-properties:
34 build-days-to-keep: '{build-days-to-keep}'
35 artifact-num-to-keep: '{artifact-num-to-keep}'
36
37 wrappers:
38 - lf-infra-wrappers:
39 build-timeout: '{build-timeout}'
40 jenkins-ssh-credential: '{jenkins-ssh-credential}'
41
42 scm:
43 - cord-infra-gerrit-repo-scm:
44 gerrit-server-url: '{gerrit-server-url}'
45 branch: '$GERRIT_BRANCH'
46 destination-dir: 'cord'
47
48 node: '{build-node}'
49 project-type: freestyle
50 concurrent: false
51
52 builders:
53 - cord-infra-gerrit-repo-patch:
54 project: '$GERRIT_PROJECT'
55 change-number: '$GERRIT_CHANGE_NUMBER'
56 patchset-number: '$GERRIT_PATCHSET_NUMBER'
57 - shell: |
58 cd cord/build/docs
59 make test
60
61
62- job-template:
63 name: 'publish-documentation'
64
65 triggers:
66 - cord-infra-gerrit-trigger-merge:
67 gerrit-server-name: '{gerrit-server-name}'
68 project-regexp: '{project-regexp}'
69 branch-regexp: '{branch-regexp}'
70 dependency-jobs: '{dependency-jobs}'
71
72 properties:
73 - cord-infra-properties:
74 build-days-to-keep: '{build-days-to-keep}'
75 artifact-num-to-keep: '{artifact-num-to-keep}'
76
77 wrappers:
78 - lf-infra-wrappers:
79 build-timeout: '{build-timeout}'
80 jenkins-ssh-credential: '{jenkins-ssh-credential}'
81
82 scm:
83 - cord-infra-gerrit-repo-scm:
84 gerrit-server-url: '{gerrit-server-url}'
85 branch: '$GERRIT_BRANCH'
86 destination-dir: 'cord'
87
88 node: '{build-node}'
89 project-type: freestyle
90 concurrent: false
91
92 builders:
93 - shell: |
94 cd cord/build/docs
95 make build
96
97# publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh
98# publishers:
99# - ssh:
100