diff --git a/Jenkinsfile b/Jenkinsfile index 9c1fa78..819cf51 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,17 @@ pipeline { } stages { + stage('Clean Workspace') { + steps { + echo "๐Ÿงน Cleaning entire workspace before checkout..." + sh ''' + # Remove everything except .git directory + find . -mindepth 1 -maxdepth 1 ! -name '.git' -exec rm -rf {} + 2>/dev/null || true + echo "Workspace completely cleaned" + ''' + } + } + stage('Checkout') { steps { echo "๐Ÿ” Checking out LSL project: ${PROJECT_NAME}" @@ -20,17 +31,6 @@ pipeline { } } - stage('Clean Workspace') { - steps { - echo "๐Ÿงน Cleaning up processed files from previous builds..." - sh ''' - # Remove any processed files from previous builds - rm -f processed_*.lsl - echo "Workspace cleaned of processed files" - ''' - } - } - stage('LSL Validation') { steps { echo "๐Ÿ”ง Validating LSL syntax..."