diff options
author | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-06-09 19:16:00 +0200 |
---|---|---|
committer | Jan-Simon Möller <jsmoeller@linuxfoundation.org> | 2017-06-09 22:03:01 +0200 |
commit | cf1fc8e08722790752176df0d875a1be8e9c3a32 (patch) | |
tree | 8607eda81c8c6e543bc0861881482053b204e295 /jjb/common/include-apps-build-app.sh | |
parent | 60ab5c6e78b375c51051a7eacccf5f9ba3c9b37f (diff) |
Update application build to support multiarch builds and upload
Change-Id: I1998a8a0ae8ad16029fb834e87f06cdc760426d1
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/common/include-apps-build-app.sh')
-rw-r--r-- | jjb/common/include-apps-build-app.sh | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/jjb/common/include-apps-build-app.sh b/jjb/common/include-apps-build-app.sh index 8940ac00..f46c7f8d 100644 --- a/jjb/common/include-apps-build-app.sh +++ b/jjb/common/include-apps-build-app.sh @@ -46,13 +46,26 @@ if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "apps/"); t # clone git rm -rf ${MYPROJECT} - git clone https://${GERRIT_HOST}/gerrit/${GERRIT_PROJECT}.git pushd ${MYPROJECT} - git log -1 - git fetch ${TARGET_REFSPEC} - git reset --hard FETCH_HEAD - git log -1 + git log -1 --pretty=oneline + if test x"" != x"${TARGETREFSPEC}" ; then + git fetch origin ${TARGETREFSPEC} + git reset --hard FETCH_HEAD + else + # try + # GERRIT_CHANGE_NUMBER="9551" + # GERRIT_PATCHSET_NUMBER="2" + if ( test x"" != x"${GERRIT_CHANGE_NUMBER}" -a x"" != x"${GERRIT_PATCHSET_NUMBER}" ) ; then + pip install --user git-review + git review -d ${GERRIT_CHANGE_NUMBER},${GERRIT_PATCHSET_NUMBER} + fi + sleep 2 + # if not reset, we leave it to master + fi + git log -1 --pretty=oneline + + # Fixme: use aglbuild script if test -f Makefile ; then make make package |