From 2621dc2757d8d02bfa648b2bd568f5de71c2c53b Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Thu, 21 Apr 2022 09:47:39 +0000 Subject: [PATCH 1/3] backup device manifest as artifact --- src/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/build.sh b/src/build.sh index 459e449..d4b8ffa 100755 --- a/src/build.sh +++ b/src/build.sh @@ -323,6 +323,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then fi fi + if [ "$IS_EMULATOR" = true -a "$BACKUP_EMULATOR" = true ]; then EMULATOR_ARCHIVE="e-android$android_version-eng-$currentdate-linux-x86-img.zip" mv ../../../host/linux-x86/sdk_addon/*-img.zip "$ZIP_DIR/$zipsubdir/$EMULATOR_ARCHIVE" @@ -332,6 +333,8 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then fi cd "$source_dir" || return 1 + echo ">> [$(date)] backup manifest for ${DEVICE}" + repo manifest -r -o "$ZIP_DIR/$zipsubdir"/"$build".xml build_successful=true else echo ">> [$(date)] Failed build for ${DEVICE}" -- GitLab From cd7812c2efc085aa87f1f613f352fb7f093e6c77 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Thu, 21 Apr 2022 11:32:51 +0000 Subject: [PATCH 2/3] remove zip extension --- src/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index d4b8ffa..a3bdcb9 100755 --- a/src/build.sh +++ b/src/build.sh @@ -334,7 +334,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then cd "$source_dir" || return 1 echo ">> [$(date)] backup manifest for ${DEVICE}" - repo manifest -r -o "$ZIP_DIR/$zipsubdir"/"$build".xml + repo manifest -r -o "$ZIP_DIR/$zipsubdir"/${build%???}xml build_successful=true else echo ">> [$(date)] Failed build for ${DEVICE}" -- GitLab From d00c6b50761a3de78c8f0a57cf7e39c4baf3c205 Mon Sep 17 00:00:00 2001 From: Alexandre Roux Date: Fri, 22 Apr 2022 12:28:16 +0000 Subject: [PATCH 3/3] removing useless empty line --- src/build.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index a3bdcb9..41f5266 100755 --- a/src/build.sh +++ b/src/build.sh @@ -323,7 +323,6 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then fi fi - if [ "$IS_EMULATOR" = true -a "$BACKUP_EMULATOR" = true ]; then EMULATOR_ARCHIVE="e-android$android_version-eng-$currentdate-linux-x86-img.zip" mv ../../../host/linux-x86/sdk_addon/*-img.zip "$ZIP_DIR/$zipsubdir/$EMULATOR_ARCHIVE" -- GitLab