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 <javier.viguera@digi.com>
This commit is contained in:
parent
1111a3d6a0
commit
43918960f0
12
sdk/build.sh
12
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue