diff options
author | 2020-03-24 10:08:54 +0100 | |
---|---|---|
committer | 2020-03-27 09:30:04 +0100 | |
commit | 47533a77f8826718e7f79cce01ec9bc1e03bfadb (patch) | |
tree | 358f0c2899f5d15fe1df258f80e61ed4187a0fe3 /jjb/common/include-agl-run-test-rsync-release.sh | |
parent | c78d5cb2dabb9600e50e082ea6a8e0de74bb292a (diff) |
SPEC-2962: permit to have more than one board per build
The current way to generate jobs assume that only one board exists per
build.
For handing more than one board per build, we need to introduce a sort
of loop.
So for each build, we will produce a list of boards in BOARDOUT
In the BOARDOUT/$board, we will have:
- an "info" file with all necessary VARIABLES for copying artifacts
So for each board, some artifact will be copied.
Then only one job for the "main" board of the CIBT job will be handled.
The extra boards of a build will need to have their own CIBT, but at
least they dont need to do a real build/copyartifact.
Change-Id: I6c6999e549c7f1216f466410896b3058efc5882d
Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'jjb/common/include-agl-run-test-rsync-release.sh')
-rw-r--r-- | jjb/common/include-agl-run-test-rsync-release.sh | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/jjb/common/include-agl-run-test-rsync-release.sh b/jjb/common/include-agl-run-test-rsync-release.sh index abab0f34..7be8bfa3 100644 --- a/jjb/common/include-agl-run-test-rsync-release.sh +++ b/jjb/common/include-agl-run-test-rsync-release.sh @@ -25,11 +25,19 @@ cd output #pwd #ls -alhR tmp/deploy/images -# copy files to $DEST -for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do - eval cp -avL tmp/deploy/images/${TARGETMACHINE}/$(echo "$"${i}) ${DEST}/ +for board in $(ls $BOARDOUT) +do + # copy files to $DEST + . $BOARDOUT/$board/info + echo "INFO: copy artifact for $x_releng_device/$x_lava_device" + for i in DEVICE_DTB DEVICE_KERNEL DEVICE_INITRAMFS DEVICE_NBDROOT; do + eval cp -avL tmp/deploy/images/${TARGETMACHINE}/$(echo "$"${i}) ${DEST}/ + done done +# for the moment, nothing more use this directory, clean it +rm -r $BOARDOUT + tree $DEST ls -alhR $DEST |