build.sh: copy SDK only if built

Fix jenkins error:
cp: cannot stat `tmp/deploy/sdk': No such file or directory

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
This commit is contained in:
Javier Viguera 2014-10-07 10:33:13 +02:00
parent 8a8054fccc
commit 9542bd6b13
1 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,10 @@ copy_images() {
if echo ${JOB_NAME} | grep -qs 'dey.*release'; then
cp -r tmp/deploy/* ${1}/
else
cp -r tmp/deploy/{images,sdk} ${1}/
cp -r tmp/deploy/images ${1}/
if [ "${DY_BUILD_TCHAIN}" = "true" ]; then
cp -r tmp/deploy/sdk ${1}/
fi
fi
# Jenkins artifact archiver does not copy symlinks, so remove them
# beforehand to avoid ending up with several duplicates of the same