From f4ba69da10484090b2e15f6ea103b7034264dea0 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 27 Dec 2013 19:33:46 +0000 Subject: [PATCH] Exclude target subdir from source for infra pubs * infra-publications.yaml: Address the "cannot move _out to a subdirectory of itself" error which prematurely terminates the infra-publications-publish job. Change-Id: I091f5e9f6efe3e32295cc139c2db2b5e58c8924c --- .../jenkins_job_builder/config/infra-publications.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml b/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml index 9ce7f8d7a6..a605de209d 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/infra-publications.yaml @@ -11,7 +11,11 @@ # NAME will either be the branch name or the tag name NAME=`echo $ZUUL_REFNAME | sed 's/refs.tags.//'` mkdir -p _out/$NAME - mv * _out/$NAME + for FN in * ; do + if [ "_out" != "$FN" ] ; then + mv $FN _out/$NAME/ + fi + done publishers: - ftp: