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>
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
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 \