Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #797 from LiskHQ/use_jenkins_cache
Browse files Browse the repository at this point in the history
Use jenkins cache
  • Loading branch information
MichalTuleja committed Aug 28, 2018
2 parents 2c01707 + b162bf9 commit 1d9e8d4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ pipeline {
stages {
stage ('Build dependencies') {
steps {
sh 'npm install'
script {
cache_file = restoreCache("package.json")
sh 'npm install'
saveCache(cache_file, './node_modules', 10)
}
}
}
stage ('Run ESLint') {
Expand Down

0 comments on commit 1d9e8d4

Please sign in to comment.