acf7572d10
We do not need gerrit-git-prep anymore, zuul-git-prep works on all our slaves and has the advantage of using zuul-cloner so that the local cache is used and Depends-On works. Remove gerrit-git-prep and use zuul-git-prep instead everywhere. Change-Id: I2f106af58f78fceaf3c497fe43e6f5a002695645
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
# simply copy the contents of the repository to the server, no building needed
|
|
- job:
|
|
name: infra-publications-publish
|
|
node: ubuntu-xenial
|
|
|
|
builders:
|
|
- zuul-git-prep
|
|
- install-distro-packages
|
|
- revoke-sudo
|
|
- add-docs-root-marker:
|
|
docsrootdir: '.'
|
|
- shell: |
|
|
#!/bin/bash -x
|
|
# NAME will either be the branch name or the tag name
|
|
NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'`
|
|
mkdir -p _out/$NAME
|
|
for FN in * ; do
|
|
if [ "_out" != "$FN" ] ; then
|
|
mv $FN _out/$NAME/
|
|
fi
|
|
# Explicitly copy the root marker file
|
|
mv .root-marker _out/$NAME/
|
|
done
|
|
|
|
publishers:
|
|
- afs:
|
|
site: afs-docs
|
|
source: '_out/**'
|
|
target: 'infra/publications/'
|
|
remove-prefix: '_out/'
|
|
- console-log
|
|
|
|
- job:
|
|
name: infra-publications-publish-index
|
|
node: ubuntu-xenial
|
|
|
|
builders:
|
|
- zuul-git-prep
|
|
- install-distro-packages
|
|
- revoke-sudo
|
|
- 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
|
|
- add-docs-root-marker:
|
|
docsrootdir: output/
|
|
|
|
publishers:
|
|
- afs:
|
|
site: afs-docs
|
|
source: 'output/**'
|
|
target: 'infra/publications/'
|
|
remove-prefix: 'output/'
|
|
- console-log
|