diff --git a/Jenkinsfile b/Jenkinsfile index 7b37b8c..885af68 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,9 +22,14 @@ node { stage('Build') { nodejs(nodeJSInstallationName: 'Node23') { sh 'npm run build' + sh 'ls -la build || echo "Build directory not found"' } } + stage('Verify Build') { + sh 'test -d build || (echo "Build directory does not exist" && exit 1)' + } + stage('Deploy to printer1') { def remote = [:] remote.name = 'printer1'