Archive the docs html directory 79/58279/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 5 Jun 2017 20:06:21 +0000 (16:06 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Mon, 5 Jun 2017 20:06:23 +0000 (16:06 -0400)
This patch using the new lf-infra-publisher ensures that docs only
archives the html directory rather than including the structure leading
to the directory.

Change-Id: Ie2ff63690203ea7023f2578d4f52719f9d386a52
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/docs/docs-rtd.yaml

index b87ddfec3c9fe5d6002e7dfdf14868601e191bc0..aafbeb3b464841842d3ec053252752d131fb61d6 100644 (file)
@@ -18,7 +18,7 @@
     project: docs
     project-name: docs
     rtdproject: opendaylight
-    archive-artifacts: 'docs/_build/html/**'
+    archive-artifacts: ''
 
 - job-template:
     name: 'docs-merge-rtd-{stream}'
           $PYTHON -m pip install tox
           tox -edocs
 
+          # Archive generated docs
+          mkdir -p "$WORKSPACE/archives"
+          mv docs/_build/html archives/
+
     publishers:
       - email-notification:
           email-recipients: '{email-recipients}'