X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Frtd-verify.sh;h=e91dd71c6dd79aec179b9fb4b33dc6d0eb7f3804;hb=a86c6e8d376c95aa00b179fce9d207e61c8f72d0;hp=810a87cb0db4b04c4d05b1bfd55c489611017fd0;hpb=a9a25596239cc8b5fd374cf742764fe5a9c2a3d7;p=releng%2Fglobal-jjb.git diff --git a/shell/rtd-verify.sh b/shell/rtd-verify.sh index 810a87cb..e91dd71c 100644 --- a/shell/rtd-verify.sh +++ b/shell/rtd-verify.sh @@ -28,7 +28,20 @@ if [ "$GERRIT_PROJECT" != "$PROJECT" ]; then fi git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD -git submodule update +git submodule update --init --recursive +for submod in $(git config -f .gitmodules --get-regexp '^submodule\.(.+)\.url' | awk -e '{print $1}'); do + git config --get "$submod" +done + + +# When a new commands are added in lftools, the docs verify job needs to +# run the new command which requires installing the lftools dev version +if [[ $JOB_NAME == "lf-infra-lftools-rtd-verify-any" ]]; then + # shellcheck disable=SC1090 + source ~/lf-env.sh + lf-activate-venv pip + pip install -e . +fi echo "---> Generating docs" cd "$WORKSPACE"