Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33150

volume that uses environment variable as the source is mounted twice

      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

          Steffen Pingel created issue -
          Steffen Pingel made changes -
          Attachment New: Screen Shot 2016-02-25 at 10.26.53.png [ 32045 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 169023 ] New: JNJira + In-Review [ 183327 ]
          Nicolas De Loof made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ]

            Unassigned Unassigned
            spingel Steffen Pingel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: