Merge "Display UML diagrams for doc gerrit reviews"
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Wed, 29 Aug 2018 21:51:52 +0000 (21:51 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 29 Aug 2018 21:51:52 +0000 (21:51 +0000)
jjb/doc/doc-install-plantuml.sh [new file with mode: 0644]
jjb/doc/doc-templates-rtd.yaml

diff --git a/jjb/doc/doc-install-plantuml.sh b/jjb/doc/doc-install-plantuml.sh
new file mode 100644 (file)
index 0000000..0f5aedd
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -x
+if [ ! -d /usr/share/plantuml ]
+       then
+       sudo mkdir -p /usr/share/plantuml
+       cd /usr/share/plantuml
+       sudo wget https://nexus.onap.org/service/local/repositories/central/content/net/sourceforge/plantuml/plantuml/8059/plantuml-8059.jar
+       sudo mv plantuml-8059.jar plantuml.jar
+       fi
+
+if [ ! -f /usr/bin/plantuml ]
+       then
+       sudo touch /usr/bin/plantuml
+       sudo chmod +w /usr/bin/plantuml
+       echo "#!/bin/bash" > /tmp/x.$$
+       echo "java -jar /usr/share/plantuml/plantuml.jar \$@"  >> /tmp/x.$$
+       sudo cp /tmp/x.$$ /usr/bin/plantuml
+       sudo chmod +x /usr/bin/plantuml
+       fi
index 4bc2d11..77cea69 100644 (file)
@@ -68,6 +68,7 @@
           else
               git fetch origin $GERRIT_REFSPEC && git checkout FETCH_HEAD
           fi
+      - shell: !include-raw: doc-install-plantuml.sh
       - shell: |
           #!/bin/bash
           virtualenv $WORKSPACE/venv-tox