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
This commit is contained in:
parent
56dbdd9f9f
commit
6a06a4199c
2 changed files with 32 additions and 1 deletions
30
.gitignore
vendored
Normal file
30
.gitignore
vendored
Normal file
|
|
@ -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
|
||||
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue