Replace slash for tarball rename

It is possible for a branch to be feature/zuulv3, as a result that
breaks our renaming process. Replace / with -.

Change-Id: I17aed5fc284e2a173d8e4853105a1ee30c28cad9
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-08-16 19:49:43 -04:00
parent c3fa84a6b8
commit 8dab0632b8

View File

@ -17,6 +17,6 @@
with_items: "{{ result.files }}"
- name: Rename tarball to branch specific name.
shell: "mv *.tar.gz {{ zuul.project.short_name }}-{{ zuul.branch }}.tar.gz"
shell: "mv *.tar.gz {{ zuul.project.short_name }}-{{ zuul.branch | replace('/', '-') }}.tar.gz"
args:
chdir: "src/{{ zuul.project.canonical_name }}/dist"