-
Bug
-
Resolution: Unresolved
-
Minor
-
None
Each slave defines an environment variable named REPOSITORIES that points to a local directory. Build jobs should mount that directory inside containers for use a Maven cache.
Steps:
1. Configure a build job with a docker Build Environment
2. Specify a volume for the image where "Path on host" is "$REPOSITORIES" and "Path inside container" is "/repositories"
3. Run the build
When the build runs the following command is invoked duplicating the volume parameter:
docker run --tty --detach --workdir /jenkins/workspace/build --volume /cache/repositories:/repositories:rw --volume $REPOSITORIES:/repositories:rw --volume /tmp:/tmp:rw --net bridge ...
On the docker host an unexpected directory named "/cache/repositories:" is created.
The mount point inside the container works as expected but the additional directory and volume parameter are not expected.
[JENKINS-33150] volume that uses environment variable as the source is mounted twice
Attachment | New: Screen Shot 2016-02-25 at 10.26.53.png [ 32045 ] |
Workflow | Original: JNJira [ 169023 ] | New: JNJira + In-Review [ 183327 ] |
Assignee | Original: Nicolas De Loof [ ndeloof ] |