From ab3bcb031bcecf6215a7028654f6eafe706968a4 Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Tue, 4 Apr 2017 08:40:58 +0000 Subject: [PATCH] Exclude dir to prevent change-while-read error [0] http://logs.openstack.org/41/413e6058fbaf8ce7f062bfa236c0ccc8f4e8cd85/post/loci-publish-loci-tarball/9597830/console.html#_2017-04-04_08_37_14_161578 Change-Id: Ia875524dba524ec00101806edc86287af09eb9ab --- jenkins/jobs/loci-jobs.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jenkins/jobs/loci-jobs.yaml b/jenkins/jobs/loci-jobs.yaml index 23986fdacf..f5c4cbe227 100644 --- a/jenkins/jobs/loci-jobs.yaml +++ b/jenkins/jobs/loci-jobs.yaml @@ -40,13 +40,13 @@ - zuul-git-prep - shell: | #!/bin/bash -xe - tar cvfz {name}.tar.gz --exclude .git . + mkdir dist + tar cvfz dist/{name}.tar.gz --exclude dist --exclude .git . /usr/local/jenkins/slave_scripts/version-properties.sh source version.properties - mkdir dist - mv {name}.tar.gz dist/{name}-$PROJECT_VER.tar.gz + mv dist/{name}.tar.gz dist/{name}-$PROJECT_VER.tar.gz publishers: - tarball