Added stashing
Some checks failed
tombutcher.work/tombutcher-ui/pipeline/head There was a failure building this commit

This commit is contained in:
Tom Butcher 2025-04-06 21:53:28 +01:00
parent 88b5139cfd
commit b849a86fc3

2
Jenkinsfile vendored
View File

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