2021-02-06 10:43:43 -08:00
|
|
|
#!/bin/bash
|
|
|
|
|
2023-03-13 13:40:24 -07:00
|
|
|
echo "Should be executed from project root folder. Will try to upload to $RUSEFI_SSH_SERVER"
|
2021-02-06 10:43:43 -08:00
|
|
|
pwd
|
|
|
|
# ibom is part of Doxygen job simply in order to reduce workspace HDD usage on my tiny build server
|
|
|
|
bash misc/jenkins/InteractiveHtmlBom/run.sh
|
|
|
|
|
2021-10-25 05:22:31 -07:00
|
|
|
if [ -n "$RUSEFI_SSH_SERVER" ]; then
|
2021-02-06 10:43:43 -08:00
|
|
|
echo "Uploading IBOMs"
|
2021-10-25 05:22:31 -07:00
|
|
|
cd hardware
|
|
|
|
tar -czf - ibom | sshpass -p "$RUSEFI_SSH_PASS" ssh -o StrictHostKeyChecking=no "$RUSEFI_SSH_USER"@"$RUSEFI_SSH_SERVER" "tar -xzf - -C docs"
|
2021-02-06 10:43:43 -08:00
|
|
|
fi
|
|
|
|
[ $? -eq 0 ] || { echo "upload FAILED"; exit 1; }
|