2019-06-01 10:47:15 -07:00
|
|
|
set script_name=build_version.bat
|
|
|
|
echo Entering %script_name%
|
|
|
|
|
|
|
|
|
2019-02-19 18:30:41 -08:00
|
|
|
rm -rf temp
|
2019-03-20 13:54:09 -07:00
|
|
|
set folder=snapshot_%date:~10%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_%bundle_name%_rusefi
|
2019-02-19 18:30:41 -08:00
|
|
|
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
|
|
|
|
|
|
|
|
cd temp
|
2019-06-01 10:47:15 -07:00
|
|
|
set bundle_file=rusefi_bundle_%bundle_name%.zip
|
|
|
|
mv rusefi_bundle.zip %bundle_file%
|
2019-06-01 09:34:29 -07:00
|
|
|
|
2019-06-01 10:47:15 -07:00
|
|
|
echo Uploading %bundle_file%
|
|
|
|
ncftpput -u %RUSEFI_BUILD_FTP_USER% -p %RUSEFI_BUILD_FTP_PASS% %FTP_SERVER% . %bundle_file%
|
2019-06-01 09:34:29 -07:00
|
|
|
|
2019-02-19 18:30:41 -08:00
|
|
|
cd ..
|
2019-06-01 10:47:15 -07:00
|
|
|
|
|
|
|
pwd
|
|
|
|
echo "exiting %script_name%"
|