From ed40bd941994e009e6994b5b4e647e2344227355 Mon Sep 17 00:00:00 2001 From: "zhu.boxiang" Date: Sat, 9 Oct 2021 09:41:28 +0800 Subject: [PATCH] Fix: Change the parent of publish job 1. Change the parent of publish job 2. Change the regex of rename packages Change-Id: I3d20d3b2477e268bebffd73a56234994ccf0db91 --- .zuul.yaml | 4 ++-- playbooks/python-tarball/post.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index aacb074..c03f412 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -44,9 +44,9 @@ - job: name: publish-skyline-python-branch-tarball - parent: publish-openstack-python-branch-tarball + parent: publish-openstack-artifacts description: | - Publish the results of the tox-tarball job to tarballs.openstack.org. + 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 post-run: playbooks/python-tarball/post.yaml diff --git a/playbooks/python-tarball/post.yaml b/playbooks/python-tarball/post.yaml index fdd48e9..80630e7 100644 --- a/playbooks/python-tarball/post.yaml +++ b/playbooks/python-tarball/post.yaml @@ -3,7 +3,7 @@ - fetch-python-sdist-output pre_tasks: - name: Rename whl files to branch specific name - shell: "mv {{ item }}.*.whl {{ item }}-{{ zuul.branch | replace('/', '-') }}.whl" + shell: "mv {{ item }}*.whl {{ item }}-{{ zuul.branch | replace('/', '-') }}.whl" args: chdir: "src/{{ zuul.project.canonical_name }}/dist" with_items: @@ -15,7 +15,7 @@ - "skyline_nginx" - "skyline_policy_manager" - name: Rename tar.gz files to branch specific name - shell: "mv {{ item }}.*.tar.gz {{ item }}-{{ zuul.branch | replace('/', '-') }}.tar.gz" + shell: "mv {{ item }}*.tar.gz {{ item }}-{{ zuul.branch | replace('/', '-') }}.tar.gz" args: chdir: "src/{{ zuul.project.canonical_name }}/dist" with_items: