Build folder checks
This commit is contained in:
parent
de1ff1aba7
commit
4063c0c6fc
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@ -22,9 +22,14 @@ node {
|
|||||||
stage('Build') {
|
stage('Build') {
|
||||||
nodejs(nodeJSInstallationName: 'Node23') {
|
nodejs(nodeJSInstallationName: 'Node23') {
|
||||||
sh 'npm run build'
|
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') {
|
stage('Deploy to printer1') {
|
||||||
def remote = [:]
|
def remote = [:]
|
||||||
remote.name = 'printer1'
|
remote.name = 'printer1'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user