system-config/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml
Jeremy Stanley 091ffa97d1 Publications use ZUUL_REF instead of ZUUL_BRANCH.
* .../files/jenkins_job_builder/config/infra-publications.yaml: The
$ZUUL_BRANCH variable is not available in the post pipeline, so use
the $ZUUL_REF variable instead. It contains the branch name we want.

Change-Id: I8ad62a1d191f36a93d057c0fe3092e27c319ce9a
2013-07-30 22:37:56 +00:00

40 lines
901 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_REF/'
remove-prefix: ''
excludes: ''
- console-log
- 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