From 43045124a49c1540882bd6bd7e00e4a4addac047 Mon Sep 17 00:00:00 2001 From: Jan-Simon Möller Date: Thu, 28 Sep 2017 13:59:36 +0200 Subject: After merge, rebuild app MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and upload it to the app repository folder on the download server for consumption. Change-Id: I3df70f0ce11f0d448999e9b54e637a53070e0439 Signed-off-by: Jan-Simon Möller --- .../include-apps-prepare-upload-folder-merged.sh | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 jjb/common/include-apps-prepare-upload-folder-merged.sh (limited to 'jjb/common/include-apps-prepare-upload-folder-merged.sh') diff --git a/jjb/common/include-apps-prepare-upload-folder-merged.sh b/jjb/common/include-apps-prepare-upload-folder-merged.sh new file mode 100644 index 00000000..37b5887f --- /dev/null +++ b/jjb/common/include-apps-prepare-upload-folder-merged.sh @@ -0,0 +1,46 @@ +#!/bin/bash + +#set -x +set -e + +echo -e "\n\n\n" +echo "#########################################" +echo -e "\n\n\n" + +#failsafe +if test x"" = x"${ALGBRANCH}" ; then + echo "AGLBRANCH not defined" + exit 1 +fi +if test x"" = x"${MYPROJECT}"; then + echo "MYPROJECT not defined" + exit 1 +fi +if test x"" = x"${BUILD_NUMBER}"; then + echo "BUILD_NUMBER not defined" + exit 1 +fi +if test x"" = x"${GERRIT_CHANGE_NUMBER}"; then + echo "GERRIT_CHANGE_NUMBER not defined" + exit 1 +fi +if test x"" = x"${TARGETARCH}"; then + echo "TARGETARCH is not defined" + exit 1 +fi + +# construct upload folder +#mv UPLOAD UPLOAD2 || true +rm -rf UPLOAD/* || true +mkdir -p UPLOAD/${MYPROJECT}/${AGLBRANCH}/${BUILD_NUMBER}-${GERRIT_CHANGE_NUMBER}/${TARGETARCH} +ln -sf ${BUILD_NUMBER}-${GERRIT_CHANGE_NUMBER} UPLOAD/${MYPROJECT}/${AGLBRANCH}/latest +export DEST=$(pwd)/UPLOAD/${MYPROJECT}/${AGLBRANCH}/${BUILD_NUMBER}-${GERRIT_CHANGE_NUMBER}/${TARGETARCH} + +# copy the wgt to the upload folder +pushd ${MYPROJECT} + pwd + ls -alh || true + ls package || true + cp package/*.wgt $DEST + ls -alh $DEST +popd -- cgit 1.2.3-korg