aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common/include-apps-prepare-upload-folder-merged.sh
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-01-02 16:37:19 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-01-02 16:37:19 +0000
commitde66b7019f452a8a0948f7991fc07e9c9f27bb87 (patch)
treeec45a5483ca7462f06c1df1b5585b0c1b783e9c0 /jjb/common/include-apps-prepare-upload-folder-merged.sh
parent6b0635bb6b157ca1434ec268cdc557041888f908 (diff)
parent4f1e4787e247add28e63978af2abcd7ae3d5ab05 (diff)
Merge "Apply new folder structure for application repository"
Diffstat (limited to 'jjb/common/include-apps-prepare-upload-folder-merged.sh')
-rw-r--r--jjb/common/include-apps-prepare-upload-folder-merged.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/jjb/common/include-apps-prepare-upload-folder-merged.sh b/jjb/common/include-apps-prepare-upload-folder-merged.sh
index 0e273bd3..222e921c 100644
--- a/jjb/common/include-apps-prepare-upload-folder-merged.sh
+++ b/jjb/common/include-apps-prepare-upload-folder-merged.sh
@@ -32,9 +32,13 @@ fi
# construct upload folder
#mv UPLOAD UPLOAD2 || true
rm -rf UPLOAD/* || true
-mkdir -p UPLOAD/${MYPROJECT}/${AGLBRANCH}/changeset-${GERRIT_CHANGE_NUMBER}/${TARGETARCH}
-ln -sf changeset-${GERRIT_CHANGE_NUMBER} UPLOAD/${MYPROJECT}/${AGLBRANCH}/latest
-export DEST=$(pwd)/UPLOAD/${MYPROJECT}/${AGLBRANCH}/changeset-${GERRIT_CHANGE_NUMBER}/${TARGETARCH}
+
+PROJECTDIR="${AGLBRANCH}/${MYPROJECT}/${TARGETARCH}/"
+PROJECTPATTERN="${PROJECTDIR}/changeset-${GERRIT_CHANGE_NUMBER}"
+
+mkdir -p UPLOAD/${PROJECTPATTERN}
+ln -sf changeset-${GERRIT_CHANGE_NUMBER} UPLOAD/${PROJECTDIR}/latest
+export DEST=$(pwd)/UPLOAD/${PROJECTPATTERN}
# copy the wgt to the upload folder
pushd ${MYPROJECT}