project-config/playbooks/python-branch-tarball/post.yaml
Andreas Jaeger 559671b35a Readd playbooks/python-branch-tarball/
This fixes the python-branch-tarball job. This was removed by accident
in I7ca54a7045023596ec77682214afad5f210ac964.

Remove instead puppet-branch-tarball as was intented.

Change-Id: I5e6c15f5eaf159f245e6d24935429a1962ec0085
2017-11-01 20:38:39 +01:00

16 lines
495 B
YAML

- hosts: all
roles:
- fetch-tox-output
- fetch-python-sdist-output
pre_tasks:
# NOTE(pabelanger): This need to run before fetch-python-sdist-output to
# properly rename wheels and tarballs.
- name: Rename files to branch specific name
shell: "mv *.{{ item }} {{ zuul.project.short_name }}-{{ zuul.branch | replace('/', '-') }}.{{ item }}"
args:
chdir: "src/{{ zuul.project.canonical_name }}/dist"
with_items:
- "tar.gz"
- "whl"