a86367a84d
* modules/jenkins/files/slave_scripts/gerrit-git-prep.sh * .../openstack_project/files/jenkins_job_builder/config/macros.yaml * .../infra-publications.yaml: If a git clean can not remove some files, for example because a previous command has not freed its open file handles, it will return nonzero. If this happens, wait a moment and try again in case this is only a briefly transient problem. Change-Id: If11320da7379c8fb8841b945067ce544188f5681
43 lines
984 B
YAML
43 lines
984 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
|
|
if ! git clean -x -f -d -q ; then
|
|
sleep 1
|
|
git clean -x -f -d -q
|
|
fi
|
|
./make-index
|
|
|
|
publishers:
|
|
- ftp:
|
|
site: docs.openstack.org
|
|
source: 'output/**'
|
|
target: 'infra/publications/'
|
|
remove-prefix: 'output/'
|
|
excludes: ''
|
|
- console-log
|