Commit 574ad84a authored by Amena's avatar Amena

Update Jenkinsfile

parent 60c00422
......@@ -5,14 +5,16 @@ podTemplate(label: label,
],
volumes: [
persistentVolumeClaim(mountPath: '/home/jenkins/workspace/', claimName: 'pvc', readOnly: false)
persistentVolumeClaim(mountPath: '/home/jenkins/workspace', claimName: 'pvc', readOnly: false)
]) {
node(label) {
stage('Build a Node project') {
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 config set cache /home/jenkins/workspace/${JOB_NAME}/npm-cache && npm install'
sh 'npm install /home/jenkins/workspace/${JOB_NAME}/npm-cache '
}
}
}
......
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