From 43918960f06508dd6d5945a82b835a44424e5409 Mon Sep 17 00:00:00 2001 From: Javier Viguera Date: Tue, 5 Nov 2013 11:18:54 +0100 Subject: [PATCH] build.sh: copy individual packages only for release builds For daily builds just copy the firmware images to avoid running out of space in the buildserver. Signed-off-by: Javier Viguera --- sdk/build.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sdk/build.sh b/sdk/build.sh index 0ddf71d03..54a1253e4 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -56,13 +56,13 @@ error() { # $1: destination directoy # copy_images() { - # Do not copy all the individual packages when building all the variants - # The buildserver cannot afford such amount of disk space. In this case - # just copy the firmware images. - if [ "${DY_BUILD_VARIANTS}" = "true" ]; then - cp -r tmp/deploy/images ${1}/ - else + # Copy individual packages only for 'release' builds, not for 'daily'. + # For 'daily' builds just copy the firmware images (the buildserver + # cannot afford such amount of disk space) + if echo ${JOB_NAME} | grep -qs 'dey.*release'; then cp -r tmp/deploy/* ${1}/ + else + cp -r tmp/deploy/images ${1}/ fi # Jenkins artifact archiver does not copy symlinks, so remove them # beforehand to avoid ending up with several duplicates of the same