From 1b5c55d8754133e91f8623d3c56de4c5201cc1b4 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Wed, 2 Aug 2017 10:32:43 -0400 Subject: [PATCH] Log file stats for tox tarball / wheels Add some additional information about tarballs / wheels we are copying. For example, md5 and sha1 info. Change-Id: I96d6903f8bc5ced196b1b57f93277fa87bdf31c1 Depends-On: I86ff459d283eaf348821c2f11c1f8575598f088d Signed-off-by: Paul Belanger --- playbooks/tox/tarball-post.yaml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/playbooks/tox/tarball-post.yaml b/playbooks/tox/tarball-post.yaml index 2127d93a2..13e975b49 100644 --- a/playbooks/tox/tarball-post.yaml +++ b/playbooks/tox/tarball-post.yaml @@ -1,11 +1,21 @@ - hosts: all tasks: + - name: Find tarballs and wheels in dist folder. + find: + file_type: file + paths: "src/{{ zuul.project.canonical_name }}/dist" + patterns: "*.tar.gz,*.whl" + register: result + + - name: Display stat for tarballs and wheels. + stat: + path: "{{ item.path }}" + with_items: "{{ result.files }}" + - name: Collect tarball artifacts. synchronize: - dest: "{{ zuul.executor.src_root }}/tarballs" + dest: "{{ zuul.executor.work_root }}/artifacts" mode: pull - src: "src/{{ zuul.project.canonical_name }}/dist/{{ item }}" + src: "{{ item.path }}" verify_host: true - with_items: - - "*.tar.gz" - - "*.whl" + with_items: "{{ result.files }}"