pipeline { agent { docker { image 'node:18.18.2-alpine3.18' } } stages { stage('Build') { steps { echo 'Building..' } } stage('Test') { when { expression { return fileExists ('CenaMieszkaniaDesign.py') } } steps { echo "file exists" } } } stage('Deploy') { steps { echo 'Deploying....' } } } }