aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-agl-run-test-rsync-changeid.sh
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-05-31 13:34:10 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-05-31 13:34:10 +0200
commit1ddfd9f5d15733d1ab02d6ed204cd332626d7e4f (patch)
tree89d104ea77744d08159a23e2bc9efdbb639e7b6f /jjb/common/include-agl-run-test-rsync-changeid.sh
parent3c0d9b5a0a1ea8ec10c03de238ddcbf492646607 (diff)
Skip build-info if it does not exist
This fixes https://gerrit.automotivelinux.org/gerrit/#/c/AGL/meta-agl-demo/+/21462/ . Change-Id: I5b00fe9ee35299bf0938c606c6acd9fcfa2af1ae Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-agl-run-test-rsync-changeid.sh')
-rw-r--r--jjb/common/include-agl-run-test-rsync-changeid.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/jjb/common/include-agl-run-test-rsync-changeid.sh b/jjb/common/include-agl-run-test-rsync-changeid.sh
index 9c218f96..033ca8c0 100644
--- a/jjb/common/include-agl-run-test-rsync-changeid.sh
+++ b/jjb/common/include-agl-run-test-rsync-changeid.sh
@@ -39,9 +39,13 @@ echo "tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"-}"
# cp -avL tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB#"$DEVICE_KERNEL"-} tmp/deploy/images/${TARGETMACHINE}/${DEVICE_DTB}
#fi
-BUILD_INFO=build-info
+if [ -e tmp/deploy/images/${TARGETMACHINE}/build-info ] ; then
+ cp -avL tmp/deploy/images/${TARGETMACHINE}/build-info ${DEST}/
+ cp -avL tmp/deploy/images/${TARGETMACHINE}/build-info ${DEST2}/
+fi
+
# copy files to $DEST (only if variable is non-empty)
-for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT BUILD_INFO; do
+for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do
FILE=$(eval echo \$${i})
if [ -n "$FILE" ]; then
cp -avL tmp/deploy/images/${TARGETMACHINE}/${FILE} ${DEST}/