Clean up TinyIPA chroot directories in POST job

The TinyIPA post job is currently failing because when it tries to
publish the files, the rsync command attempts to search all directories
for matching source files including the chroot build directories. This
causes it to fail because it doesn't have the permissions to read so of
the directories inside the chroot.

The zuul code comment explaining the behaviour:
176431ec14/zuul/launcher/ansiblelaunchserver.py (L939)

"include any directories (so that we continue to search for the thing we
want no matter how deep it is),"

Change-Id: I3373d7a6e0220407a84d60b2b2051fa13ffe5174
This commit is contained in:
Sam Betts 2016-08-05 14:34:42 +01:00
parent 62107d361e
commit 3b2fdfbc1f

View File

@ -37,6 +37,9 @@
(cd imagebuild/tinyipa && make)
mv imagebuild/tinyipa/tinyipa*.tar.gz UPLOAD_TAR
mv imagebuild/tinyipa/tinyipa*.* UPLOAD_RAW
# NOTE(sambetts) Must clean up chroot directories before
# publisher rsync command tries and fails to read them
make clean
;;
coreos)
imagebuild/coreos/full_trusty_build.sh