system-config/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml
Jeremy Stanley c9f65bb29f Fix branch parameter in publications publish job.
* .../files/jenkins_job_builder/config/infra-publications.yaml: The
infra-publications-publish job used the wrong syntax to expand the
ZUUL_BRANCH parameter in its target, and as a result the literal
string '${ZUUL_BRANCH}' was being used as a directory name on the
remote FTP server. This corrects it so that content will be
published to the intended path.

Change-Id: I4e3ef9b10e9932246a10b0dea48c5ebd4884a680
2013-07-14 16:18:22 +00:00

40 lines
914 B
YAML

# simply copy the contents of the repository to the server, no building needed
- job:
name: infra-publications-publish
concurrent: false
node: precise
builders:
- gerrit-git-prep
publishers:
- ftp:
site: docs.openstack.org
source: '**'
target: 'infra/publications/$ZUUL_BRANCH/'
remove-prefix: ''
excludes: ''
- console-log-post
- job:
name: infra-publications-publish-index
concurrent: false
node: precise
builders:
- gerrit-git-prep
- shell: |
#!/bin/bash -xe
git reset --hard remotes/origin/master
git clean -x -f -d -q
./make-index
publishers:
- ftp:
site: docs.openstack.org
source: 'output/**'
target: 'infra/publications/'
remove-prefix: 'output/'
excludes: ''
- console-log-post