I have a Docker container running Jenkins, I can successfully build my program but I could'nt find out where it is stored. At the end of my build I make a zip file of the JavaScript project (the dist directory) and ask to store it to \/var\/jenkins_home\/canopy.zip , using this script
npm install
npm install -g bower
npm install -g grunt-cli
bower install
grunt build
zip /var/jenkins_home/canopy.zip /var/jenkins_home/workspace/Canopy/dist
I finally found it.
The directory is in the _data folder of the docker at the following path :
/var/lib/docker/volumes/dockerID/_data/workspace
it can be found in this path as well where the jenkins hosted to run
PATH: /var/lib/docker/volumes/jenkins_home/_data/workspace
eg: /var/lib/docker/volumes/jenkins_home/_data/workspace [root@localmav workspace]# ls -lr firstjob/ total 0
here firstjob is the jenkins job
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.