Use npm ci instead npm install
MODIFY
Dockerfile
Dockerfile
@@ -5,7 +5,7 @@ WORKDIR /usr/src/app
COPY package*.json ./
-RUN npm install
+RUN npm ci
#copy the rest of the project into the image
COPY . .

MODIFY
Jenkinsfile
Jenkinsfile
@@ -46,7 +46,7 @@ pipeline {
}
}
steps {
- sh "npm install --cache /tmp"
+ sh "npm ci --cache /tmp"
sh "npm run build"
sh "npm run test"
}

GW-456: Use npm ci instead npm install