When Autorelease runs and the patch adds a new submodule autorelease
needs to run an init & update against the new submodule to pull it in.
Change-Id: I21d84069bdde1dd0b819712142620f9985fb083f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
if [ "$GERRIT_PROJECT" != "releng/autorelease" ]; then
cd "$WORKSPACE/$GERRIT_PROJECT"
fi
+
echo "Checking out ${GERRIT_PROJECT} patch ${GERRIT_REFSPEC}..."
git fetch origin ${GERRIT_REFSPEC} && git checkout FETCH_HEAD
+ # If the project is autorelease then we need to init and update submodules
+ if [ "$GERRIT_PROJECT" != "releng/autorelease" ]; then
+ git submodule update --init
+ fi
+
- builder:
name: autorelease-cfp
builders: