From b849a86fc3e3f2d3ffbac4c2b51c3f30bfe123a5 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Sun, 6 Apr 2025 21:53:28 +0100 Subject: [PATCH] Added stashing --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b617bc7..95d3fce 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -22,11 +22,13 @@ pipeline { stage('Install dependencies') { steps { sh 'ls && npm install' // Install project dependencies + stash name: 'node_modules', includes: 'node_modules/**' } } stage('Build') { steps { + unstash 'node_modules' sh 'ls && npm ls vite && npm run build' // Build the project } }