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

volume that uses environment variable as the source is mounted twice

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Activity

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

            People

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

              Dates

              Created:
              Updated: