diff --git a/Jenkinsfile b/Jenkinsfile index 567408c7..a6c2d192 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,14 +12,14 @@ pipeline { cacheValidityDecidingFile: '', excludes: '', includes: '**/*', - path: "$WORKSPACE/.next/cache" + path: ${$WORKSPACE}"/.next/cache" ), arbitraryFileCache( cacheName: 'NPM', // Added a cache name for better clarity cacheValidityDecidingFile: '', excludes: '', includes: '**/*', - path: "$JENKINS_HOME/.npm" // Use the HOME environment variable for home directory + path: ${JENKINS_HOME}"/.npm" // Use the HOME environment variable for home directory ) ], defaultBranch: 'dev', maxCacheSize: 256000) }