From 4b0fd453ccbd5af505f36f25de78721bfaafc0ed Mon Sep 17 00:00:00 2001 From: "zhu.boxiang" Date: Sat, 9 Oct 2021 17:26:48 +0800 Subject: [PATCH] Fix: Add pre-run into job Add pre-run into job to ensure pip3 and revoke sudo. Change-Id: I7eb5431f7dc18bfcade5498c7af1a9364bad68bc --- .zuul.yaml | 1 + playbooks/python-tarball/pre.yaml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 playbooks/python-tarball/pre.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 28ae856..4f81fe6 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -47,6 +47,7 @@ parent: publish-openstack-artifacts description: | Publish the results tar.gz and whl packages to tarballs.openstack.org. + pre-run: playbooks/python-tarball/pre.yaml run: playbooks/python-tarball/run.yaml vars: release_python: python3 diff --git a/playbooks/python-tarball/pre.yaml b/playbooks/python-tarball/pre.yaml new file mode 100644 index 0000000..5a3f34d --- /dev/null +++ b/playbooks/python-tarball/pre.yaml @@ -0,0 +1,5 @@ +- hosts: all + roles: + # We use ensure-pip to make sure the wheel module is installed + - ensure-pip + - revoke-sudo