Fix rtd merge job to handle new tag uploaded
[releng/global-jjb.git] / shell / rtd-verify.sh
index 7f403eb..86254a1 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/bash -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2017 The Linux Foundation and others.
@@ -30,6 +30,11 @@ fi
 git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
 git submodule update
 
+if [[ $JOB_NAME == "lf-infra-lftools-rtd-verify-any" ]]; then
+    # Install patchset lftools
+    python3 -m pip install --user -e .
+fi
+
 echo "---> Generating docs"
 cd "$WORKSPACE"
 tox -edocs