From 4063c0c6fcbaf3d590231b6a0c2768ec866d1062 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 1 Jun 2025 21:57:53 +0100 Subject: [PATCH] Build folder checks --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) 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'