fome-fw/misc/jenkins/generate_doxygen/gen_upload_docs.sh

16 lines
444 B
Bash

#!/bin/bash
pwd
cd firmware
doxygen || { echo "doxygen run FAILED"; exit 1; }
# http://www.ncftp.com/download/
# actually Cygwin http://rusefi.com/wiki/index.php?title=Internal:Software:Build_Server
cd ../doxygen
if [ -n "$RUSEFI_FTP_SERVER" ]; then
echo "Uploading Doxygen"
ncftpput -R -z -m -V -u "$RUSEFI_DOXYGEN_FTP_USER" -p "$RUSEFI_DOXYGEN_FTP_PASS" "$RUSEFI_FTP_SERVER" / html
fi
[ $? -eq 0 ] || { echo "upload FAILED"; exit 1; }