diff --git a/firmware/tunerstudio/upload_ini.sh b/firmware/tunerstudio/upload_ini.sh index dd198a0cce..a5bc7e102f 100755 --- a/firmware/tunerstudio/upload_ini.sh +++ b/firmware/tunerstudio/upload_ini.sh @@ -1,5 +1,8 @@ #!/bin/bash +# user=$1 +# pass=$2 +# host=$3 if [ ! "$1" ] || [ ! "$2" ] || [ ! "$3" ]; then echo "No Secrets" diff --git a/misc/jenkins/build_working_folder.sh b/misc/jenkins/build_working_folder.sh index 7844a0c971..8ca4740472 100644 --- a/misc/jenkins/build_working_folder.sh +++ b/misc/jenkins/build_working_folder.sh @@ -105,6 +105,11 @@ ls -l $FULL_BUNDLE_FILE if [ -n "$RUSEFI_FTP_SERVER" ]; then echo "$SCRIPT_NAME: Uploading full bundle" ncftpput -u $RUSEFI_BUILD_FTP_USER -p $RUSEFI_BUILD_FTP_PASS $RUSEFI_FTP_SERVER . $FULL_BUNDLE_FILE + retVal=$? + if [ $retVal -ne 0 ]; then + echo "full bundle upload failed" + exit 1 + fi fi cd .. @@ -125,6 +130,11 @@ cd .. ls -l $UPDATE_BUNDLE_FILE if [ -n "$RUSEFI_FTP_SERVER" ]; then ncftpput -u "$RUSEFI_BUILD_FTP_USER" -p "$RUSEFI_BUILD_FTP_PASS" "$RUSEFI_FTP_SERVER" autoupdate "$UPDATE_BUNDLE_FILE" + retVal=$? + if [ $retVal -ne 0 ]; then + echo "autoupdate upload failed" + exit 1 + fi fi cd .. mv temp/$UPDATE_BUNDLE_FILE artifacts