diff --git a/build/jenkins/zip b/build/jenkins/zip index d4180f0..7cfb170 100644 --- a/build/jenkins/zip +++ b/build/jenkins/zip @@ -72,9 +72,10 @@ pipeline { 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 Check if it's an exe 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 Corrected findstr pattern + echo "%%F" | findstr /I /E ".exe" >nul && if not defined EXE_FILE set "EXE_FILE=%%F" ) rem DEBUG: Show EXE_FILE after loop