Zack Williams | 9a021d7 | 2018-05-25 16:59:25 -0700 | [diff] [blame] | 1 | --- |
| 2 | # Legacy CORD documentation verification and publish tasks |
| 3 | |
| 4 | - project: |
| 5 | name: verify-docs-legacy |
| 6 | |
| 7 | jobs: |
| 8 | - 'verify-documentation-legacy': |
| 9 | project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$' |
| 10 | branch-regexp: '{legacy-branches-regexp}' |
| 11 | |
| 12 | - project: |
| 13 | name: publish-docs-legacy |
| 14 | |
| 15 | jobs: |
| 16 | - 'publish-documentation-legacy': |
| 17 | project-regexp: '^(cord|platform-install|cord-tester|rcord|ecord|mcord|opencloud|xos|xos-gui|xos-tosca)$' |
| 18 | branch-regexp: '{legacy-branches-regexp}' |
| 19 | |
| 20 | - job-template: |
| 21 | id: verify-documentation-legacy |
| 22 | name: "verify-documentation-legacy" |
| 23 | |
| 24 | triggers: |
| 25 | - cord-infra-gerrit-trigger-patchset: |
| 26 | gerrit-server-name: '{gerrit-server-name}' |
| 27 | project-regexp: '{project-regexp}' |
| 28 | branch-regexp: '{branch-regexp}' |
| 29 | file-include-regexp: '{doc-files-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 | manifest-url: '{gerrit-server-url}/{cord-repo-manifest}' |
| 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 | destination-dir: 'cord' |
| 55 | project: '$GERRIT_PROJECT' |
| 56 | change-number: '$GERRIT_CHANGE_NUMBER' |
| 57 | patchset-number: '$GERRIT_PATCHSET_NUMBER' |
| 58 | - shell: | |
| 59 | cd cord/build/docs |
| 60 | make test |
| 61 | |
| 62 | - job-template: |
| 63 | id: publish-documentation-legacy |
| 64 | name: 'publish-documentation-legacy' |
| 65 | |
| 66 | triggers: |
| 67 | - cord-infra-gerrit-trigger-merge: |
| 68 | gerrit-server-name: '{gerrit-server-name}' |
| 69 | project-regexp: '{project-regexp}' |
| 70 | branch-regexp: '{branch-regexp}' |
| 71 | file-include-regexp: '{doc-files-regexp}' |
| 72 | dependency-jobs: '{dependency-jobs}' |
| 73 | |
| 74 | properties: |
| 75 | - cord-infra-properties: |
| 76 | build-days-to-keep: '{build-days-to-keep}' |
| 77 | artifact-num-to-keep: '{artifact-num-to-keep}' |
| 78 | |
| 79 | wrappers: |
| 80 | - lf-infra-wrappers: |
| 81 | build-timeout: '{build-timeout}' |
| 82 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 83 | |
| 84 | scm: |
| 85 | - cord-infra-gerrit-repo-scm: |
| 86 | manifest-url: '{gerrit-server-url}/{cord-repo-manifest}' |
| 87 | branch: '$GERRIT_BRANCH' |
| 88 | destination-dir: 'cord' |
| 89 | |
| 90 | node: '{build-node}' |
| 91 | project-type: freestyle |
| 92 | concurrent: false |
| 93 | |
| 94 | builders: |
| 95 | - shell: | |
| 96 | cd cord/build/docs |
| 97 | make build |
| 98 | |
| 99 | # publish over ssh: https://docs.openstack.org/infra/jenkins-job-builder/publishers.html#publishers.ssh |
| 100 | publishers: |
| 101 | - ssh: |
| 102 | site: '{docs-ssh-host}' |
| 103 | source: 'cord/build/docs/_book/**' |
| 104 | remove-prefix: 'cord/build/docs/_book' |
| 105 | target: '//var/www/guide/$GERRIT_BRANCH' |
| 106 | - ssh: |
| 107 | site: '{docs-ssh-host}' |
| 108 | source: 'cord/build/docs/xos/swagger/**' |
| 109 | remove-prefix: 'cord/build/docs/xos' |
| 110 | target: '//var/www/guide/$GERRIT_BRANCH' |