jenkinsfile update
This commit is contained in:
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user