Build folder checks

This commit is contained in:
Tom Butcher 2025-06-01 21:57:53 +01:00
parent de1ff1aba7
commit 4063c0c6fc

5
Jenkinsfile vendored
View File

@ -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'