Commit 9c167460 authored by Amena's avatar Amena

Update Jenkinsfile

parent 574ad84a
......@@ -5,7 +5,7 @@ podTemplate(label: label,
],
volumes: [
persistentVolumeClaim(mountPath: '/home/jenkins/workspace', claimName: 'pvc', readOnly: false)
persistentVolumeClaim(mountPath: '/root/.npm', claimName: 'pvc', readOnly: false)
]) {
node(label) {
......@@ -13,7 +13,7 @@ podTemplate(label: label,
git 'https://gitlab.mynisum.com/amenaafreen/node-app-test1.git'
container('node') {
// sh 'npm config set cache /home/jenkins/workspace/${JOB_NAME}/npm-cache && npm install'
sh 'npm install /home/jenkins/workspace/${JOB_NAME}/npm-cache '
sh 'npm install'
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment