Skip to content
Advertisement

Jenkins in docker, workspace location

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

JavaScript

The build is successful and in the Jenkins UI I can sucessfully see the workspace, however when I try to find it on the docker at path /var/jenkins_home the directory is empty.

I would like to have the location of the workspace so I can easily get back my zip file.

Advertisement

Answer

I finally found it.

The directory is in the _data folder of the docker at the following path :

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement