Commit c51d4acd authored by Amena's avatar Amena

Update Jenkinsfile

parent b7300f1d
...@@ -5,14 +5,14 @@ podTemplate(label: label, ...@@ -5,14 +5,14 @@ podTemplate(label: label,
], ],
volumes: [ volumes: [
persistentVolumeClaim(mountPath: 'home/jenkins/workspace/.npm', claimName: 'pvc', readOnly: false) persistentVolumeClaim(mountPath: 'home/jenkins/workspace', claimName: 'pvc', readOnly: false)
]) { ]) {
node(label) { node(label) {
stage('Build a Node project') { stage('Build a Node project') {
git 'https://gitlab.mynisum.com/amenaafreen/node-app-test1.git' git 'https://gitlab.mynisum.com/amenaafreen/node-app-test1.git'
container('node') { container('node') {
sh 'npm install' sh 'npm config set cache home/jenkins/workspace/${JOB_NAME}/npm-cache --global && 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