I\'m using Jenkins in docker. The /var/jenkins_home is mounted on /var/jenkins-data on my host. My Jenkins can execute docker commands (mount of so
/var/jenkins_home
/var/jenkins-data
Thanks, the Previous solution works for me. My version for node container and ${PWD} as param
stage('Build Solution') { agent { docker { image 'node:6-alpine' args '-v ${PWD}:/usr/src/app -w /usr/src/app' reuseNode true } } steps { sh 'npm install' } }