From 75e6fde6d95b97bdfba59e6796a6abf4526c9f2e Mon Sep 17 00:00:00 2001
From: Clark Boylan <clark.boylan@gmail.com>
Date: Wed, 19 Mar 2014 22:16:47 -0700
Subject: [PATCH] Only attempt to rename tarballs in tarball job.

The branch tarball job for python projects has been failing since we
started writing md5 and sha1 sums to files because it is trying to copy
multiple files to a single destination. Only attempt to rename tar.gz
files so that we have a 1:1 relationship between source tarball and
renamed branch destination tarball.

Change-Id: I744b959717269fc50846efba8639908079e6d0ff
---
 .../files/jenkins_job_builder/config/python-jobs.yaml           | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml b/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml
index c4e8374b15..ac87022fe4 100644
--- a/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml
+++ b/modules/openstack_project/files/jenkins_job_builder/config/python-jobs.yaml
@@ -206,7 +206,7 @@
           #!/bin/bash -xe
           BRANCH=$ZUUL_REFNAME
           BRANCH_PATH=`echo $BRANCH | tr / -`
-          mv dist/* dist/{name}-$BRANCH_PATH.tar.gz
+          mv dist/*.tar.gz dist/{name}-$BRANCH_PATH.tar.gz
 
     publishers:
       - tarball: