From 31a9d9bc78b48108a61405ad9584bf99947b8604 Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 1 Jul 2019 11:19:06 -0400 Subject: [PATCH] bundle folder name is broken :( --- .../build_current_bundle.bat | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat b/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat index 5429181760..80a73fc7ed 100644 --- a/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat +++ b/misc/jenkins/functional_test_and_build_bundle/build_current_bundle.bat @@ -72,15 +72,13 @@ rm -rf temp mkdir temp set stm_arch=stm32f407 -echo Date %date% -echo Year %date:~10% -echo Month %date:~4,2% -set folder=snapshot_%date:~10%%date:~4,2%%date:~7,2%_%time:~0,2%%time:~3,2%_%stm_arch%_rusefi +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 +for /f %%i in ('datecyg +%%Y%%m%%d_%%H%%M%%S') do set TIMESTAMP=%%i + +set folder=snapshot_%TIMESTAMP%_%stm_arch%_rusefi echo "%script_name%: folder variable1=%folder%" set folder=temp\%folder% - -rem this replaces spaces with 0s - that's needed before 10am -set folder=%folder: =0% echo "%script_name%: folder variable3=%folder%" pwd