diff --git a/Jenkinsfile b/Jenkinsfile index 3ca768d..4038c43 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -118,27 +118,19 @@ cd ledger python3 -m pip install --upgrade pip python3 -m pip install robotframework selenium robotframework-seleniumlibrary webdriver-manager || true - if [ -f requirements.txt ]; then pip install -r requirements.txt || true; fi """ } } } - - - - stage('Create PVC') { - steps { - container('python-39-slim-buster-build') { - // Apply PVC manifest if kubectl is available - sh "if command -v kubectl >/dev/null 2>&1; then kubectl apply -f k8s/pvc-chrome-profile.yaml || true; kubectl wait --for=condition=bound pvc/chrome-profile-pvc --timeout=60s || true; else echo 'kubectl not found, skipping PVC creation'; fi" - } - } - } - stage('Run Robot Tests') { steps { container('python-39-slim-buster-build') { - sh '. $VENV_DIR/bin/activate && mkdir -p ${OUTPUTDIR} && ./jenkins/run_robot.sh' + + sh """ + cd ledger + mkdir -p ${OUTPUTDIR} && ./jenkins/run_robot.sh + ls -lart ${OUTPUTDIR} + """ } } post {