GHA reliability: retry FTP upload #3011

refactoring: reducing code duplication
This commit is contained in:
rusefillc 2021-10-09 01:46:29 -04:00
parent d900ba93de
commit 83a7cb95ae
2 changed files with 2 additions and 13 deletions

View File

@ -25,5 +25,5 @@ jobs:
run: ant
- name: Upload plugin body
working-directory: ./java_tools/ts_plugin
run: ./upload_plugin.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }}
working-directory: .
run: java_console/upload_file.sh ${{ secrets.RUSEFI_BUILD_FTP_USER }} ${{ secrets.RUSEFI_BUILD_FTP_PASS }} ${{ secrets.RUSEFI_FTP_SERVER }} autoupdate java_tools/ts_plugin/build/jar/rusefi_plugin_body.jar

View File

@ -1,11 +0,0 @@
#!/bin/bash
if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then
echo "No Secrets"
exit 0
fi
echo -e "\nUploading plugin body"
ncftpput -r 999 -m -R -v -u "$1" -p "$2" "$3" autoupdate build/jar/rusefi_plugin_body.jar