This is an automated email from the ASF dual-hosted git repository.

bneradt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/trafficserver-ci.git


The following commit(s) were added to refs/heads/main by this push:
     new 692b944  PR docs: fix exporting cmake doc-build (#254)
692b944 is described below

commit 692b944ac62c81d7aedb1f5b4c4a34e587c0b4c6
Author: Brian Neradt <[email protected]>
AuthorDate: Mon Oct 23 17:36:28 2023 -0500

    PR docs: fix exporting cmake doc-build (#254)
---
 jenkins/github/docs.pipeline | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/jenkins/github/docs.pipeline b/jenkins/github/docs.pipeline
index b7d42fd..6f01f3d 100644
--- a/jenkins/github/docs.pipeline
+++ b/jenkins/github/docs.pipeline
@@ -97,7 +97,18 @@ _END_OF_DOC_
                     # docbuild contents so it can be published.
                     export_dir="${WORKSPACE}/output/${GITHUB_PR_NUMBER}"
                     mkdir -p ${export_dir}
-                    cp -rf docbuild "${export_dir}"
+                    docbuild_dir="docbuild"
+                    if [ -d docbuild ]
+                    then
+                      docbuild_dir="docbuild"
+                    elif [ -d docs-build/docbuild ]
+                    then
+                      docbuild_dir="docs-build/docbuild"
+                    else
+                      echo "Could not find build docs."
+                      exit 1
+                    fi
+                    cp -rf "${docbuild_dir}" "${export_dir}"
                     ls "${export_dir}/docbuild"
                     sudo chmod -R 777 ${WORKSPACE}
                     exit 0

Reply via email to