fix shell compatibility and clean up jenkins pipeline
This commit is contained in:
parent
b85cd4cba0
commit
4857f4f436
1 changed files with 2 additions and 10 deletions
12
Jenkinsfile
vendored
12
Jenkinsfile
vendored
|
|
@ -17,14 +17,6 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
echo "🔍 Checking out LSL project: ${PROJECT_NAME}"
|
echo "🔍 Checking out LSL project: ${PROJECT_NAME}"
|
||||||
checkout scm
|
checkout scm
|
||||||
script {
|
|
||||||
// Debug branch detection
|
|
||||||
echo "🔍 Branch debugging:"
|
|
||||||
echo " BRANCH_NAME: ${env.BRANCH_NAME}"
|
|
||||||
echo " GIT_BRANCH: ${env.GIT_BRANCH}"
|
|
||||||
sh 'echo " Current branch: $(git branch --show-current)"'
|
|
||||||
sh 'echo " Git describe: $(git describe --all --long)"'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -58,7 +50,7 @@ pipeline {
|
||||||
echo "🔄 Preprocessing LSL files..."
|
echo "🔄 Preprocessing LSL files..."
|
||||||
sh '''
|
sh '''
|
||||||
for file in *.lsl; do
|
for file in *.lsl; do
|
||||||
if [[ -f "$file" ]]; then
|
if [ -f "$file" ]; then
|
||||||
echo "Processing $file..."
|
echo "Processing $file..."
|
||||||
python3 ${LSL_TOOLS_PATH}/lsl_preprocessor.py "$file" "processed_$file"
|
python3 ${LSL_TOOLS_PATH}/lsl_preprocessor.py "$file" "processed_$file"
|
||||||
fi
|
fi
|
||||||
|
|
@ -129,7 +121,7 @@ pipeline {
|
||||||
echo "" >> FUNCTIONS.md
|
echo "" >> FUNCTIONS.md
|
||||||
|
|
||||||
for file in *.lsl; do
|
for file in *.lsl; do
|
||||||
if [[ -f "$file" ]]; then
|
if [ -f "$file" ]; then
|
||||||
echo "## $file" >> FUNCTIONS.md
|
echo "## $file" >> FUNCTIONS.md
|
||||||
echo "" >> FUNCTIONS.md
|
echo "" >> FUNCTIONS.md
|
||||||
grep -n "^[a-zA-Z_][a-zA-Z0-9_]*(" "$file" | head -20 >> FUNCTIONS.md || true
|
grep -n "^[a-zA-Z_][a-zA-Z0-9_]*(" "$file" | head -20 >> FUNCTIONS.md || true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue