Docker supports multiple src resources for the ADD command: https://docs.docker.com/reference/builder/#add
In docker-java however, the ADD_OR_COPY_PATTERN in DockerfileStatement.Add prevents this from working.
I have a Dockerfile which contains a line like:
The Dockerfile builds without a problem when run directly with docker build. However, when I try to build the same Dockerfile using the Docker plugin on Jenkins, I get this error:
{"stream":"Step 7 : ADD src1 src2 /dest/\n"}
{"errorDetail":{"message":"src1: no such file or directory"},"error":"src1: no such file or directory"}
BTW, the Pattern may also have a problem with src or dest resources with spaces in their path. This is also supported by Docker, as long as the paths are surrounded by double quotes.
Docker supports multiple src resources for the ADD command: https://docs.docker.com/reference/builder/#add
In docker-java however, the ADD_OR_COPY_PATTERN in DockerfileStatement.Add prevents this from working.
I have a Dockerfile which contains a line like:
The Dockerfile builds without a problem when run directly with
docker build. However, when I try to build the same Dockerfile using the Docker plugin on Jenkins, I get this error:BTW, the Pattern may also have a problem with src or dest resources with spaces in their path. This is also supported by Docker, as long as the paths are surrounded by double quotes.