Add doxygen deployment script

This commit is contained in:
Dan Hawkins 2020-09-06 08:57:56 +01:00
commit c473cfbb6e

View file

@ -42,7 +42,7 @@ pipeline {
script {
doxygensource = "${DOXYGEN}/${ARTIFACT_PATH_TO_DOXYGEN_ROOT}"
pathonserver = "${ROOT_PATH_ON_SERVER.trim()}/${productname}/${buildstampprefix}"
echo "Moving from ${doxygensource} to ${pathonserver}"
echo "Copying from ${doxygensource} to ${pathonserver}"
if (isUnix()) {
sh """#!/bin/bash
rm -rfv "${pathonserver}"
@ -51,7 +51,7 @@ pipeline {
mkdir -pv "${pathonserver}"
if [ \$? -ne 0 ]; then exit 1; fi
mv -v "${doxygensource}"/* "${pathonserver}"
cp -rv "${doxygensource}"/* "${pathonserver}"
if [ \$? -ne 0 ]; then exit 1; fi
"""
} else {