diff --git a/build/jenkins/zip b/build/jenkins/zip index 78a7676..d4180f0 100644 --- a/build/jenkins/zip +++ b/build/jenkins/zip @@ -68,12 +68,23 @@ pipeline { set "EXE_FILE=" rem Find .exe and .bin files and build a list of quoted paths for /R . %%F in (%EXE_PATTERN% %BIN_PATTERN%) do ( + rem DEBUG: Show file found + echo DEBUG: Found file: "%%F" rem Add the quoted full path to FOUND_FILES set "FOUND_FILES=!FOUND_FILES! "%%F"" rem Check if it's an exe for version extraction and store the first one found + rem Using findstr to check if the full path ends with .exe (case-insensitive) echo "%%F" | findstr /I /E "\\\\.exe" >nul && if not defined EXE_FILE set "EXE_FILE=%%F" ) + rem DEBUG: Show EXE_FILE after loop + if defined EXE_FILE ( + echo DEBUG: EXE_FILE set to: "%EXE_FILE%" + ) else ( + echo DEBUG: EXE_FILE remains undefined. + ) + + if not defined FOUND_FILES ( echo No files matching patterns %EXE_PATTERN% or %BIN_PATTERN% found in %CD%. exit /b 1 @@ -97,10 +108,13 @@ pipeline { set "ZIP_BASE_FILENAME=AzaionSuite.!DEFAULT_VERSION!" ) + rem DEBUG: Show ZIP_BASE_FILENAME before constructing zip name + echo DEBUG: ZIP_BASE_FILENAME is: !ZIP_BASE_FILENAME! + rem --- Zipping Logic --- - rem Get current date and time in YYYYMMDD-HHmmss format using wmic + rem Get current date and time inYYYYMMDD-HHmmss format using wmic rem wmic output format is LocalDateTime=YYYYMMDDHHMMSS.milliseconds+UTCoffset for /f "tokens=2 delims==" %%a in ('wmic os get localdatetime /value') do set "dt=%%a" set "YYYY=%dt:~0,4%"