Docs needs to be built from the $WORKSPACE 39/6539/4
authorThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 19 Sep 2017 17:59:34 +0000 (13:59 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Tue, 19 Sep 2017 18:08:56 +0000 (14:08 -0400)
Otherwise it will build from the submodule because of the if-statement
above. This breaks the job in cases where a project has submodules.

Change-Id: I06d6291d3329da142ecdbebfb4ac1a866108ef0b
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
.jjb-test/expected-xml/gerrit-rtd-rtd-verify-master
.jjb-test/expected-xml/github-rtd-rtd-verify-master
shell/rtd-verify.sh

index e102182..5e71f5d 100644 (file)
@@ -239,6 +239,7 @@ fi
 git fetch origin &quot;$GERRIT_REFSPEC&quot; &amp;&amp; git checkout FETCH_HEAD
 
 echo &quot;---&gt; Generating docs&quot;
+cd &quot;$WORKSPACE&quot;
 tox -edocs
 
 echo &quot;---&gt; Archiving generated docs&quot;
index a9c3edb..44dc1b7 100644 (file)
@@ -191,6 +191,7 @@ fi
 git fetch origin &quot;$GERRIT_REFSPEC&quot; &amp;&amp; git checkout FETCH_HEAD
 
 echo &quot;---&gt; Generating docs&quot;
+cd &quot;$WORKSPACE&quot;
 tox -edocs
 
 echo &quot;---&gt; Archiving generated docs&quot;
index ff06358..2074eca 100644 (file)
@@ -22,6 +22,7 @@ fi
 git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
 
 echo "---> Generating docs"
+cd "$WORKSPACE"
 tox -edocs
 
 echo "---> Archiving generated docs"