diff options
author | Mauro Sardara <msardara@cisco.com> | 2019-02-05 13:17:18 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2019-02-05 13:17:18 +0100 |
commit | fb0c4afe09d2804e8121d3d917dcb42f37a03e31 (patch) | |
tree | aa04fe24b920b720326bacc8280a3fc5edd234fc | |
parent | fbfee6c0b8b40540affa6cd7c8b4947a206fec70 (diff) |
[HICN-25] Temporarily push docs from package merge jobs.
Change-Id: I9cf7009daa124210901dfd89e1bdf4b1eaaee308
Signed-off-by: Mauro Sardara <msardara@cisco.com>
-rw-r--r-- | scripts/build-packages.sh | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh index 90d967aab..7ca2b185b 100644 --- a/scripts/build-packages.sh +++ b/scripts/build-packages.sh @@ -195,12 +195,12 @@ push_doc() { . /etc/os-release # if [[ ${JOB_NAME} == *merge* ]]; then - if [ ${JOB_NAME} == *merge* ] && [ ${ID} == "ubuntu" ] && [ ${UBUNTU_CODENAME} == "xenial" ]; then - mkdir -p $(dirname ${RESOURCES_DIR}) - mv -f ${DOC_DIR} ${RESOURCES_DIR} - cd ${SITE_DIR} - find . -type f '(' -name '*.md5' -o -name '*.dot' -o -name '*.map' ')' -delete - cat > pom.xml << EOF + if [[ ${JOB_NAME} == *merge* ]] && [[ ${ID} == "ubuntu" ]] && [[ ${UBUNTU_CODENAME} == "xenial" ]]; then + mkdir -p $(dirname ${RESOURCES_DIR}) + mv -f ${DOC_DIR} ${RESOURCES_DIR} + cd ${SITE_DIR} + find . -type f '(' -name '*.md5' -o -name '*.dot' -o -name '*.map' ')' -delete + cat > pom.xml << EOF <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>io.fd.hicn</groupId> @@ -229,8 +229,8 @@ push_doc() { </distributionManagement> </project> EOF - ${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C - cd - + ${MVN} site:site site:deploy -gs "${GLOBAL_SETTINGS_FILE}" -s "${SETTINGS_FILE}" -T 4C + cd - fi } |