Debug Jenkins LSL tools environment and add fallback to local validator
This commit is contained in:
parent
2e8494afe8
commit
4b3adf32a2
1 changed files with 25 additions and 2 deletions
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
|
|
@ -34,8 +34,25 @@ pipeline {
|
||||||
stage('LSL Validation') {
|
stage('LSL Validation') {
|
||||||
steps {
|
steps {
|
||||||
echo "🔧 Validating LSL syntax..."
|
echo "🔧 Validating LSL syntax..."
|
||||||
|
echo "Debug: Checking LSL tools path..."
|
||||||
sh '''
|
sh '''
|
||||||
|
echo "LSL_TOOLS_PATH = ${LSL_TOOLS_PATH}"
|
||||||
|
ls -la ${LSL_TOOLS_PATH}/ 2>/dev/null || echo "Directory ${LSL_TOOLS_PATH} does not exist"
|
||||||
|
|
||||||
|
# Check if local validator exists
|
||||||
|
ls -la lsl_validator.py 2>/dev/null || echo "Local lsl_validator.py not found"
|
||||||
|
|
||||||
|
# Try to use the appropriate validator
|
||||||
|
if [ -f "${LSL_TOOLS_PATH}/lsl_validator.py" ]; then
|
||||||
|
echo "Using LSL tools validator at ${LSL_TOOLS_PATH}"
|
||||||
python3 ${LSL_TOOLS_PATH}/lsl_validator.py .
|
python3 ${LSL_TOOLS_PATH}/lsl_validator.py .
|
||||||
|
elif [ -f "lsl_validator.py" ]; then
|
||||||
|
echo "Using local lsl_validator.py"
|
||||||
|
python3 lsl_validator.py .
|
||||||
|
else
|
||||||
|
echo "No LSL validator found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
|
|
@ -64,7 +81,13 @@ pipeline {
|
||||||
for file in *.lsl; do
|
for file in *.lsl; do
|
||||||
if [ -f "$file" ] && [ "${file#processed_}" = "$file" ]; then
|
if [ -f "$file" ] && [ "${file#processed_}" = "$file" ]; then
|
||||||
echo "Processing $file..."
|
echo "Processing $file..."
|
||||||
|
if [ -f "${LSL_TOOLS_PATH}/lsl_preprocessor.py" ]; then
|
||||||
python3 ${LSL_TOOLS_PATH}/lsl_preprocessor.py "$file" "processed_$file"
|
python3 ${LSL_TOOLS_PATH}/lsl_preprocessor.py "$file" "processed_$file"
|
||||||
|
elif [ -f "lsl_preprocessor.py" ]; then
|
||||||
|
python3 lsl_preprocessor.py "$file" "processed_$file"
|
||||||
|
else
|
||||||
|
echo "Warning: No LSL preprocessor found, skipping $file"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
'''
|
'''
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue