From 6a06a4199c2916cb84d15fd633db29e39f5ee0af Mon Sep 17 00:00:00 2001 From: RebeccaNod1 Date: Thu, 14 Aug 2025 00:40:29 -0500 Subject: [PATCH] Fix Jenkins preprocessor recursive processing - Only process original source files, not already-processed ones - Add .gitignore to exclude processed files and build artifacts - Prevents exponential explosion of processed_processed_processed... files --- .gitignore | 30 ++++++++++++++++++++++++++++++ Jenkinsfile | 3 ++- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..313d06f --- /dev/null +++ b/.gitignore @@ -0,0 +1,30 @@ +# Processed LSL files (generated by Jenkins) +processed_*.lsl + +# Build artifacts +releases/ +*.zip + +# Jenkins and CI artifacts +FUNCTIONS.md +DEPLOYMENT_NOTES.txt + +# IDE and editor files +.vscode/ +.idea/ +*.sublime-* +*~ +.*.swp +.*.swo + +# OS generated files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# Log files +*.log diff --git a/Jenkinsfile b/Jenkinsfile index 52f2f25..46367a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -49,8 +49,9 @@ pipeline { steps { echo "🔄 Preprocessing LSL files..." sh ''' + # Only process original source files, not already-processed ones for file in *.lsl; do - if [ -f "$file" ]; then + if [ -f "$file" ] && [[ ! "$file" =~ ^processed_ ]]; then echo "Processing $file..." python3 ${LSL_TOOLS_PATH}/lsl_preprocessor.py "$file" "processed_$file" fi