From 9542bd6b13d305a6bca27eff2a4712aa977a63dc Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Tue, 7 Oct 2014 10:33:13 +0200 Subject: [PATCH] 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 --- sdk/build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/build.sh b/sdk/build.sh index 7a98badf3..5db045b2d 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -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