2775881cb1
The two publishing jobs failed, fix them: * ZUUL_REFNAME in playbooks/publications/run.yaml#n12 is not set, use the proper variable. * index publishing is done from master, always check out master for this like it was done for version 2. Change-Id: I494c69e51282418bbc7cac45454abe8c52e6920f
23 lines
685 B
YAML
23 lines
685 B
YAML
- hosts: all
|
|
roles:
|
|
- role: write-root-marker
|
|
root_marker_dir: "{{ zuul.project.src_dir }}/"
|
|
|
|
post_tasks:
|
|
- name: Copy content directly to proper place for publishing
|
|
shell:
|
|
cmd: |
|
|
set -x
|
|
# NAME will either be the branch name or the tag name
|
|
NAME=`echo {{ zuul.ref }} | sed 's/refs.tags.//'`
|
|
mkdir -p _out/$NAME
|
|
for FN in * ; do
|
|
if [ "_out" != "$FN" ] ; then
|
|
mv $FN _out/$NAME/
|
|
fi
|
|
done
|
|
# Explicitly copy the root marker file
|
|
mv .root-marker _out/$NAME/
|
|
executable: /bin/bash
|
|
chdir: '{{ zuul.project.src_dir }}'
|