diff options
-rw-r--r-- | jjb/joid/joid-ci-jobs.yml | 2 | ||||
-rwxr-xr-x | utils/docs-build.sh | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/jjb/joid/joid-ci-jobs.yml b/jjb/joid/joid-ci-jobs.yml index e3b010028..05064de1f 100644 --- a/jjb/joid/joid-ci-jobs.yml +++ b/jjb/joid/joid-ci-jobs.yml @@ -44,7 +44,7 @@ # - 'nosdn': # disabled: true - 'onos': - disabled: true + disabled: false # - 'opencontrail': # disabled: true diff --git a/utils/docs-build.sh b/utils/docs-build.sh index 914eaf207..55cb9f652 100755 --- a/utils/docs-build.sh +++ b/utils/docs-build.sh @@ -179,6 +179,21 @@ do [[ -n "$GERRIT_COMMENT" ]] && echo "$msg" >> "$GERRIT_COMMENT" } + # TODO: failures in ODT creation should be handled error and + # cause 'exit 1' before OPNFV B release. + tex=$(find $build -name '*.tex' | head -1) + odt=$(basename "${tex%.tex}.odt") + if [[ -e $tex ]] && which pandoc > /dev/null ; then + pandoc $tex -o $output/$odt || { + msg="Error: ODT creation for $dir has failed." + echo + echo "$msg" + echo + } + else + echo "Warn: tex file and/or 'pandoc' are not found, skip ODT creation." + fi + if is_top_dir "$dir" ; then # NOTE: Having top level document (docs/index.rst) is not recommended. # It may cause conflicts with other docs (mostly with HTML |