- job-template:
    name: '{name}-infra-docs'
    node: 'ubuntu-trusty'

    builders:
        - print-template-name:
            template-name: "{template-name}"
        - gerrit-git-prep
        - install-distro-packages
        - revoke-sudo
        - docs

    publishers:
        - console-log
        - ftp:
            site: '{doc-publisher-site}'
            source: 'doc/build/html/**'
            target: 'infra/{doc-publisher-folder}'
            remove-prefix: 'doc/build/html'
            excludes: ''

- job:
    name: publish-infra-docs-index
    description: Render and publish the infra docs index.
    node: ubuntu-trusty

    builders:
      - gerrit-git-prep
      - install-distro-packages
      - revoke-sudo
      - tox:
          envlist: infra-docs

    publishers:
      - ftp:
          site: docs.openstack.org
          source: 'docs-site/output/index.html'
          target: '/infra/'
          remove-prefix: 'docs-site/output/'
      - console-log

- job:
    name: gate-infra-docs-index
    description: Render the infra docs index without publishing it.
    node: ubuntu-trusty

    builders:
      - gerrit-git-prep
      - install-distro-packages
      - revoke-sudo
      - tox:
          envlist: infra-docs

    publishers:
      - console-log

- job-group:
    name: infra-publish-jobs
    jobs:
        - '{name}-infra-docs'

- job-template:
    name: '{name}-infra-docs'
    node: 'ubuntu-trusty'

    builders:
        - print-template-name:
            template-name: "{template-name}"
        - gerrit-git-prep
        - install-distro-packages
        - revoke-sudo
        - docs

    publishers:
        - console-log
        - ftp:
            site: '{doc-publisher-site}'
            source: 'doc/build/html/**'
            target: 'infra/{doc-publisher-folder}'
            remove-prefix: 'doc/build/html'
            excludes: ''

- job:
    name: publish-infra-docs-index
    description: Render and publish the infra docs index.
    node: ubuntu-trusty

    builders:
      - gerrit-git-prep
      - install-distro-packages
      - revoke-sudo
      - tox:
          envlist: infra-docs

    publishers:
      - ftp:
          site: docs.openstack.org
          source: 'docs-site/output/index.html'
          target: 'infra/'
          remove-prefix: 'docs-site/output/'
      - console-log

- job:
    name: gate-infra-docs-index
    description: Render the infra docs index without publishing it.
    node: ubuntu-trusty

    builders:
      - gerrit-git-prep
      - install-distro-packages
      - revoke-sudo
      - tox:
          envlist: infra-docs

    publishers:
      - console-log

- job-group:
    name: infra-publish-jobs
    jobs:
        - '{name}-infra-docs'

Fix target path on publish-infra-docs-index publisher
Fix target path on publish-infra-docs-index publisher

Change-Id: Icb749e951481059e8e111d4957a7d1fe787ced80
Signed-off-by: Paul Belanger <e7139c8e6c4ea75cc1c287ce081b2dc0f3ab39ec@redhat.com>
