Added stashing
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit
This commit is contained in:
parent
88b5139cfd
commit
b849a86fc3
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -22,11 +22,13 @@ pipeline {
|
|||||||
stage('Install dependencies') {
|
stage('Install dependencies') {
|
||||||
steps {
|
steps {
|
||||||
sh 'ls && npm install' // Install project dependencies
|
sh 'ls && npm install' // Install project dependencies
|
||||||
|
stash name: 'node_modules', includes: 'node_modules/**'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
|
unstash 'node_modules'
|
||||||
sh 'ls && npm ls vite && npm run build' // Build the project
|
sh 'ls && npm ls vite && npm run build' // Build the project
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user