diff --git a/Jenkinsfile b/Jenkinsfile index ab93df9..6a66a87 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,6 +37,7 @@ pipeline { if (hasChanges) { echo "package.json changed, running npm install" currentBuild.result = 'SUCCESS' + sh 'npm install' } else { echo "package.json not changed, skipping npm install" currentBuild.result = 'SUCCESS' @@ -44,14 +45,6 @@ pipeline { } } } - stage('Install Dependencies') { - when { - expression { currentBuild.result == 'SUCCESS' } - } - steps { - sh 'npm install' - } - } stage('Run Tests') { steps { sh 'npm test'