aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/common
diff options
context:
space:
mode:
authorCorentin LABBE <clabbe@baylibre.com>2021-03-08 13:39:54 +0000
committerCorentin LABBE <clabbe@baylibre.com>2021-03-08 13:42:22 +0000
commitadcbd80872d811ba5f094016fb5c21f8f839020f (patch)
tree44eed45d540e6927776080a9aa7dfc9ff4626e02 /jjb/common
parent7fcb2de36f40171d79c6c9d3191eafaeec59c0a6 (diff)
SPEC-3414: fix the grep test failling due to set -e
The grep test fail due to jenkins beiing set -e by default Fix in the same time the path to agl-publish Bug-AGL: SPEC-3414 Change-Id: I2260d1dc266a97081695f9bd8bac9eabfdb6a3a3 Signed-off-by: Corentin LABBE <clabbe@baylibre.com>
Diffstat (limited to 'jjb/common')
-rw-r--r--jjb/common/include-agl-kci-publish-build-meta.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/jjb/common/include-agl-kci-publish-build-meta.sh b/jjb/common/include-agl-kci-publish-build-meta.sh
index da36d4c7..c2c1a5c1 100644
--- a/jjb/common/include-agl-kci-publish-build-meta.sh
+++ b/jjb/common/include-agl-kci-publish-build-meta.sh
@@ -6,8 +6,7 @@ echo "\n\n\n"
kci-publish() {
# check GERRIT_PROJECT to find if we build an app or not
- echo $GERRIT_PROJECT |grep -q apps
- if [ $? -eq 0 ];then
+ if echo $GERRIT_PROJECT |grep -q apps ;then
# for app
BUILD_VERSION="AGL-app-gerrit-$GERRIT_CHANGE_NUMBER-$GERRIT_PATCHSET_NUMBER"
else
@@ -22,7 +21,7 @@ kci-publish() {
echo "DEBUG: arch $TARGETARCH"
echo "DEBUG: branch $GERRIT_BRANCH"
return 0
- ./agl-publish.py --machine ${TARGETMACHINE} \
+ ./utils/agl-publish.py --machine ${TARGETMACHINE} \
--build_version $BUILD_VERSION \
--commit $DIST_BUILD_HASH \
--arch $TARGETARCH \