diff options
author | Mauro Sardara <msardara@cisco.com> | 2022-04-20 18:59:10 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2022-04-20 19:18:14 +0000 |
commit | 8ae7512928d49aa7d325c0ae7121b7f3f4a754cf (patch) | |
tree | d2c8c4e8729a8e2546421f817fa1bd752045d96b /jjb/scripts/hicn | |
parent | 74b0fa2272808574c561d6e5a3aa3ae2768a124a (diff) |
fix(hicn/docs.sh): create SITE_DIR if it does not exist before moving html folder
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I1cd578f1895f911e4b56d57c564759a6759de052
Diffstat (limited to 'jjb/scripts/hicn')
-rw-r--r-- | jjb/scripts/hicn/docs.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/scripts/hicn/docs.sh b/jjb/scripts/hicn/docs.sh index 24f47c395..46e835082 100644 --- a/jjb/scripts/hicn/docs.sh +++ b/jjb/scripts/hicn/docs.sh @@ -2,13 +2,15 @@ set -xe -o pipefail DOC_DIR="docs/build/html" -SITE_DIR="build/doc/deploy-site" +SITE_DIR_ROOT="build/doc" +SITE_DIR="${SITE_DIR_ROOT}/deploy-site" echo "---> jjb/scripts/hicn/docs.sh" bash scripts/build-packages.sh sphinx if [[ "${JOB_NAME}" == *merge* ]]; then + mkdir -p "${SITE_DIR_ROOT}" mv -f "${DOC_DIR}" "${SITE_DIR}" find "${SITE_DIR}" -type f '(' -name '*.md5' -o -name '*.dot' -o -name '*.map' ')' -delete fi |