Upload to pypi if pre / run was successful

If we failed to build a wheel / tarball, we don't actually want to
attempt an upload. Checking the zuul_status results will provide that
information.

Change-Id: If0afb88f5063fe11e664a0393528933911da667b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2017-10-23 13:29:07 -04:00
parent aac664de79
commit 856496533e
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
- hosts: localhost
roles:
- ensure-twine
- role: ensure-twine
when: zuul_success | bool
- role: upload-pypi
pypi_path: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool