Update Jenkinsfile
This commit is contained in:
parent
69a938b3b8
commit
46f0f270ca
|
|
@ -8,15 +8,23 @@ pipeline {
|
|||
options {
|
||||
cache(caches: [
|
||||
arbitraryFileCache(
|
||||
cacheName: 'NPM',
|
||||
cacheValidityDecidingFile: '',
|
||||
excludes: '',
|
||||
includes: '**/*',
|
||||
path: '~/.npm'
|
||||
cacheName: 'Next',
|
||||
cacheValidityDecidingFile: '',
|
||||
excludes: '',
|
||||
includes: '**/*',
|
||||
path: "${WORKSPACE}/.next/cache"
|
||||
),
|
||||
arbitraryFileCache(
|
||||
cacheName: 'NPM', // Added a cache name for better clarity
|
||||
cacheValidityDecidingFile: '',
|
||||
excludes: '',
|
||||
includes: '**/*',
|
||||
path: "${HOME}/.npm" // Use the HOME environment variable for home directory
|
||||
)
|
||||
], defaultBranch: 'dev', maxCacheSize: 256000)
|
||||
}
|
||||
|
||||
|
||||
stages {
|
||||
stage('Checkout Repository') {
|
||||
steps {
|
||||
|
|
|
|||
Loading…
Reference in New Issue