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
|
# $1: destination directoy
|
||||||
#
|
#
|
||||||
copy_images() {
|
copy_images() {
|
||||||
# Do not copy all the individual packages when building all the variants
|
# Copy individual packages only for 'release' builds, not for 'daily'.
|
||||||
# The buildserver cannot afford such amount of disk space. In this case
|
# For 'daily' builds just copy the firmware images (the buildserver
|
||||||
# just copy the firmware images.
|
# cannot afford such amount of disk space)
|
||||||
if [ "${DY_BUILD_VARIANTS}" = "true" ]; then
|
if echo ${JOB_NAME} | grep -qs 'dey.*release'; then
|
||||||
cp -r tmp/deploy/images ${1}/
|
|
||||||
else
|
|
||||||
cp -r tmp/deploy/* ${1}/
|
cp -r tmp/deploy/* ${1}/
|
||||||
|
else
|
||||||
|
cp -r tmp/deploy/images ${1}/
|
||||||
fi
|
fi
|
||||||
# Jenkins artifact archiver does not copy symlinks, so remove them
|
# Jenkins artifact archiver does not copy symlinks, so remove them
|
||||||
# beforehand to avoid ending up with several duplicates of the same
|
# beforehand to avoid ending up with several duplicates of the same
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue