2019-02-12 17:08:13 -08:00
|
|
|
|
|
|
|
set FTP_SERVER=home451478433.1and1-data.host
|
|
|
|
|
|
|
|
pwd
|
|
|
|
|
|
|
|
call misc\jenkins\build_java_console.bat
|
|
|
|
if not exist java_console_binary/rusefi_console.jar exit -1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cd firmware
|
2019-02-17 10:53:02 -08:00
|
|
|
call clean.bat
|
2019-02-12 17:08:13 -08:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo Compiling F767
|
|
|
|
cd firmware\config\boards\NUCLEO_F746
|
|
|
|
call !compile-nucleo_f746.bat
|
2019-02-17 09:54:02 -08:00
|
|
|
cd ..
|
2019-02-12 17:08:13 -08:00
|
|
|
pwd
|
|
|
|
|
|
|
|
|
2019-02-17 10:53:02 -08:00
|
|
|
rm -rf temp
|
2019-02-17 09:54:02 -08:00
|
|
|
set stm_arch=stm32f467
|
|
|
|
set folder=snapshot_%date:~10%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_%stm_arch%_rusefi
|
|
|
|
set folder=temp\%folder%
|
|
|
|
|
|
|
|
rem this replaces spaces with 0s - that's needed before 10am
|
|
|
|
set folder=%folder: =0%
|
|
|
|
|
|
|
|
echo Building file
|
|
|
|
call misc\jenkins\build_working_folder.bat
|
|
|
|
|
|
|
|
rem TODO: extract FTP duplication with 407 build
|
|
|
|
|
|
|
|
echo open ftp://u71977750-build:%RUSEFI_BUILD_FTP_PASS%@%FTP_SERVER%/ > ftp_commands.txt
|
|
|
|
echo binary >> ftp_commands.txt
|
2019-02-17 10:45:08 -08:00
|
|
|
echo put rusefi_bundle.zip rusefi_bundle_F746.zip >> ftp_commands.txt
|
2019-02-17 09:54:02 -08:00
|
|
|
|
|
|
|
echo exit >> ftp_commands.txt
|
|
|
|
|
|
|
|
cd temp
|
|
|
|
call winscp.com /script=../ftp_commands.txt
|
|
|
|
IF NOT ERRORLEVEL 0 echo winscp error DETECTED
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
|
|
|
|
2019-02-12 17:08:13 -08:00
|
|
|
echo OK for now
|
|
|
|
|