From 4857f4f436a8b7c422f710886e89e911a221a415 Mon Sep 17 00:00:00 2001 From: RebeccaNod1 Date: Tue, 12 Aug 2025 06:50:33 -0500 Subject: [PATCH] fix shell compatibility and clean up jenkins pipeline --- Jenkinsfile | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e3afe0b..52f2f25 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,14 +17,6 @@ pipeline { steps { echo "🔍 Checking out LSL project: ${PROJECT_NAME}" 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..." sh ''' for file in *.lsl; do - if [[ -f "$file" ]]; then + if [ -f "$file" ]; then echo "Processing $file..." python3 ${LSL_TOOLS_PATH}/lsl_preprocessor.py "$file" "processed_$file" fi @@ -129,7 +121,7 @@ pipeline { echo "" >> FUNCTIONS.md for file in *.lsl; do - if [[ -f "$file" ]]; then + if [ -f "$file" ]; then echo "## $file" >> FUNCTIONS.md echo "" >> FUNCTIONS.md grep -n "^[a-zA-Z_][a-zA-Z0-9_]*(" "$file" | head -20 >> FUNCTIONS.md || true