autoupdate file
This commit is contained in:
parent
956f197240
commit
041ee0b179
|
@ -1,11 +1,18 @@
|
|||
echo Packaging temp\%bundle_file% file
|
||||
set full_bundle_file=%bundle_full_name%.zip
|
||||
set update_bundle_file=%bundle_full_name%_autoupdate.zip
|
||||
|
||||
echo Packaging temp\%full_bundle_file% file
|
||||
|
||||
rm -rf temp
|
||||
mkdir temp
|
||||
|
||||
set script_name=build_working_folder.bat
|
||||
echo Entering %script_name%
|
||||
|
||||
echo %bundle_file% > temp/bundle_name.ini
|
||||
echo %bundle_full_name% > temp/bundle_name.ini
|
||||
|
||||
pwd
|
||||
rem This working folder name starts with 'temp/'
|
||||
echo %script_name%: Working folder: %folder%
|
||||
mkdir %folder%
|
||||
set console_folder=%folder%\console
|
||||
|
@ -76,13 +83,28 @@ cd temp
|
|||
|
||||
echo "Building bundle"
|
||||
pwd
|
||||
zip -r %bundle_file% *
|
||||
zip -r %full_bundle_file% *
|
||||
IF NOT ERRORLEVEL 0 echo %script_name%: ERROR INVOKING zip
|
||||
IF NOT ERRORLEVEL 0 EXIT /B 1
|
||||
|
||||
echo %script_name%: Bundle %bundle_file% ready
|
||||
ls -l %bundle_file%
|
||||
echo %script_name%: Bundle %full_bundle_file% ready
|
||||
ls -l %full_bundle_file%
|
||||
ncftpput -u %RUSEFI_BUILD_FTP_USER% -p %RUSEFI_BUILD_FTP_PASS% %RUSEFI_FTP_SERVER% . %full_bundle_file%
|
||||
|
||||
cd ..
|
||||
|
||||
mkdir artifacts
|
||||
mv temp/%full_bundle_file% artifacts
|
||||
|
||||
echo removing more static content
|
||||
cd temp
|
||||
rm -rf %console_folder%/DfuSe
|
||||
rm -rf %drivers_folder%
|
||||
zip -r %update_bundle_file% *
|
||||
ls -l %update_bundle_file%
|
||||
ncftpput -u %RUSEFI_BUILD_FTP_USER% -p %RUSEFI_BUILD_FTP_PASS% %RUSEFI_FTP_SERVER% . %update_bundle_file%
|
||||
cd ..
|
||||
|
||||
echo "%script_name%: We are back in root directory"
|
||||
|
||||
pwd
|
||||
|
|
|
@ -7,7 +7,6 @@ if %RUSEFI_BUILD_FTP_USER%.==. (
|
|||
exit 0
|
||||
)
|
||||
|
||||
rm -rf temp
|
||||
rem This depends on Cygwin date copied under 'datecyg' name to avoid conflict with Windows date
|
||||
rem By the way, '%%' is the way to escape % in batch files
|
||||
rem this is copy-pasted at build_current_bundle.bat
|
||||
|
@ -17,14 +16,8 @@ set folder=snapshot_%TIMESTAMP%_%bundle_name%_rusefi
|
|||
set folder=temp\%folder%
|
||||
|
||||
set bundle_full_name=rusefi_bundle_%bundle_name%
|
||||
set bundle_file=%bundle_full_name%.zip
|
||||
|
||||
call misc\jenkins\build_working_folder.bat
|
||||
|
||||
cd temp
|
||||
echo Uploading %bundle_file%
|
||||
ncftpput -u %RUSEFI_BUILD_FTP_USER% -p %RUSEFI_BUILD_FTP_PASS% %RUSEFI_FTP_SERVER% . %bundle_file%
|
||||
cd ..
|
||||
|
||||
pwd
|
||||
echo "exiting %script_name%"
|
||||
|
|
|
@ -65,9 +65,6 @@ if not exist java_console_binary/rusefi_console.jar exit -1
|
|||
call misc\jenkins\build_simulator.bat
|
||||
if not exist simulator/build/rusefi_simulator.exe exit -1
|
||||
|
||||
rm -rf temp
|
||||
mkdir temp
|
||||
|
||||
set stm_arch=stm32f407
|
||||
rem This depends on Cygwin date copied under 'datecyg' name to avoid conflict with Windows date
|
||||
rem By the way, '%%' is the way to escape % in batch files
|
||||
|
@ -81,7 +78,6 @@ echo "%script_name%: folder variable3=%folder%"
|
|||
|
||||
pwd
|
||||
set bundle_full_name=rusefi_bundle
|
||||
set bundle_file=%bundle_full_name%.zip
|
||||
call misc\jenkins\build_working_folder.bat
|
||||
IF NOT ERRORLEVEL 0 (
|
||||
echo %script_name%: ERROR: invoking build_working_folder.bat
|
||||
|
@ -103,10 +99,9 @@ cd %root_folder%
|
|||
pwd
|
||||
|
||||
cd temp
|
||||
if not exist %bundle_file% echo %script_name%: ERROR not found rusefi_bundle.zip
|
||||
if not exist rusefi_bundle.zip EXIT /B 1
|
||||
if not exist %full_bundle_file% echo %script_name%: ERROR not found rusefi_bundle.zip
|
||||
if not exist %full_bundle_file% EXIT /B 1
|
||||
echo "%script_name%: Uploading stuff"
|
||||
ncftpput -u %RUSEFI_BUILD_FTP_USER% -p %RUSEFI_BUILD_FTP_PASS% %RUSEFI_FTP_SERVER% . %bundle_file%
|
||||
cd ..
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue