From 7608d70ce3188972152cf6b672682ee325dc2e47 Mon Sep 17 00:00:00 2001 From: szbk Date: Sat, 18 Jan 2025 22:14:56 +0300 Subject: [PATCH] jenkinsfile update --- Jenkinsfile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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'