diff options
author | Fathi Boudra <fathi.boudra@linaro.org> | 2018-09-05 20:18:20 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2018-09-05 20:18:20 +0300 |
commit | 64206009dd0adce684502f2586729fc0b5f6f0b1 (patch) | |
tree | d3cacb29467c5ff833f9e6737a27fd750932ce63 /ledge | |
parent | 293097bc6a3a70bf7c286398093c81cc767b4974 (diff) |
ledge-oe: add publishing artifacts to snapshots
Change-Id: I44e89a98e453b55959a4f7ac77ce44a7270892f7
Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'ledge')
-rwxr-xr-x | ledge/oe/builders.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ledge/oe/builders.sh b/ledge/oe/builders.sh index 6bc7c1322e..4b773ebf0b 100755 --- a/ledge/oe/builders.sh +++ b/ledge/oe/builders.sh @@ -69,3 +69,20 @@ OSF_LMP_GIT_NAMESPACE = "opensourcefoundries/" EOF bitbake lmp-gateway-image + +DEPLOY_DIR_IMAGE=$(bitbake -e | grep "^DEPLOY_DIR_IMAGE="| cut -d'=' -f2 | tr -d '"') + +# Prepare files to publish +rm -f ${DEPLOY_DIR_IMAGE}/*.txt +find ${DEPLOY_DIR_IMAGE} -type l -delete + +# Create MD5SUMS file +find ${DEPLOY_DIR_IMAGE} -type f | xargs md5sum > MD5SUMS.txt +sed -i "s|${DEPLOY_DIR_IMAGE}/||" MD5SUMS.txt +mv MD5SUMS.txt ${DEPLOY_DIR_IMAGE} + +# Note: the main job script allows to override the default value for +# BASE_URL and PUB_DEST, typically used for OE RPB builds +cat << EOF > ${WORKSPACE}/post_build_lava_parameters +DEPLOY_DIR_IMAGE=${DEPLOY_DIR_IMAGE} +EOF |