Fix git checkout and be less verbose 39/9639/1
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 8 Jun 2017 08:58:38 +0000 (10:58 +0200)
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>
Thu, 8 Jun 2017 08:58:38 +0000 (10:58 +0200)
Change-Id: I7d2b374f1ee0fe0d96c984c3e757f2fd49dd6a22
Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
jjb/ci-apps-verify/.gitignore [new file with mode: 0644]
jjb/ci-apps-verify/ci-apps-jjb.local.sh
jjb/common/include-agl-run-test-prepare.sh
jjb/common/include-agl-run-test-short-release.sh
jjb/common/include-agl-run-test-short.sh
jjb/common/include-apps-build-app.sh
jjb/common/include-apps-fetch-install-sdk.sh

diff --git a/jjb/ci-apps-verify/.gitignore b/jjb/ci-apps-verify/.gitignore
new file mode 100644 (file)
index 0000000..ce14f83
--- /dev/null
@@ -0,0 +1,3 @@
+mediaplayer
+controls
+poky-agl-*.sh
index 9cae1dc..cb588b2 100755 (executable)
@@ -1,6 +1,15 @@
 #!/bin/bash
 
 set -x
+
+export GERRIT_REFSPEC="refs/changes/49/9549/2"
+export GERRIT_PROJECT="apps/mediaplayer"
+export GERRIT_CHANGE_NUMBER="9549"
+export GERRIT_PATCHSET_NUMBER="2"
+export GERRIT_PATCHSET_REVISION="b0f682b1579e520896ccd5492d6666d962a0c226"
+export GERRIT_HOST="gerrit.automotivelinux.org"
+export GERRIT_PORT="29418"
+
 . ../common/include-apps-header.sh
 . ../common/include-apps-fetch-install-sdk.sh
 . ../common/include-apps-build-app.sh
index bf765c7..36f5a7a 100644 (file)
@@ -4,7 +4,7 @@
 ################################################################################
 ## Run SHORT CI test
 ################################################################################
-set -x
+#set -x
 
 #ls -alh
 #pwd
index 02a7fc1..f09dca8 100644 (file)
@@ -6,7 +6,7 @@
 ################################################################################
 
 
-set -x
+#set -x
 
 echo "## ${MACHINE} ##"
 cd $REPODIR
index 6897fde..1ffc6f4 100644 (file)
@@ -6,7 +6,7 @@
 ################################################################################
 
 
-set -x
+#set -x
 
 echo "## ${MACHINE} ##"
 cd $REPODIR
index 01d765d..8940ac0 100644 (file)
@@ -40,7 +40,7 @@ HANDLED="no"
 
 # Projects in apps/*
 ###################
-if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "^apps/"); then
+if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "apps/"); then
 
     MYPROJECT=`echo $TARGETPROJECT | sed -e "s#apps/##g"`
 
@@ -50,7 +50,8 @@ if [[ ! x"yes" = x"$HANDLED" ]] && $(echo "$TARGETPROJECT" | grep -q "^apps/");
     git clone https://${GERRIT_HOST}/gerrit/${GERRIT_PROJECT}.git
     pushd ${MYPROJECT}
         git log -1
-        git reset --hard ${GERRIT_REFSPEC}
+        git fetch ${TARGET_REFSPEC}
+        git reset --hard FETCH_HEAD
         git log -1
         if test -f Makefile ; then
           make
index d107f9e..ad22050 100644 (file)
@@ -41,10 +41,10 @@ fi
 
 source "${TARGETSDKENVSCRIPT}"
 
+echo "###############################################################################"
 ls -alh ~/
-
-ls
-
+echo "###############################################################################"
 ls -alh
-
-set
\ No newline at end of file
+echo "###############################################################################"
+set
+echo "###############################################################################"