Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-20115

RSS processing inside Windows Docker Engine container uses incorrect path representation

      Summary

      When running RSS on Windows the path

      /mnt/input

      is passed to the container using the wrong representation for a Linux container:

      \\mnt\\input

      Environment

      • Windows
      • Repository Stored Specs enabled and Process Bamboo Specs in Docker enabled

      Steps to Reproduce

      1. Run RSS

      Expected Results

      RSS runs successfully.

      Actual Results

      An exception is thrown when Bamboo tries to create the container. Docker complains about the format of the path being sent as argument:

      Processing Specs within Docker containerUnable to scan repository <repository name> for Bamboo Specs
      com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository <repository name> for Bamboo Specs
              at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:739)
      ...
      Caused by: com.spotify.docker.client.exceptions.DockerRequestException: Request error: POST http://localhost:2375/containers/create?name=bamboo-specs-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx: 400, body: {"message":"the working directory '\\mnt\\input' is invalid, it needs to be an absolute path"}
      
              at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:2694)
              at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2644)
              at com.spotify.docker.client.DefaultDockerClient.createContainer(DefaultDockerClient.java:651)
              at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:698)
              ... 8 more
      Caused by: com.spotify.docker.client.shaded.javax.ws.rs.BadRequestException: HTTP 400 Bad Request
      ...
      

      Workaround

      There is no workaround.

            [BAM-20115] RSS processing inside Windows Docker Engine container uses incorrect path representation

            No work has yet been logged on this issue.

              mgardias Marcin Gardias
              abacs Andrei
              Affected customers:
              12 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: