Robert Burke created BEAM-12763:
-----------------------------------
Summary: Redundant /build/ fails license copy on first Java docker
build.
Key: BEAM-12763
URL: https://issues.apache.org/jira/browse/BEAM-12763
Project: Beam
Issue Type: Bug
Components: sdk-java-core
Reporter: Robert Burke
Assignee: Robert Burke
Reported by [~danoliveira].
After clearing {{sdks/java/container/build}} and
{{sdks/java/container/java8/build}}.
{{> Task :sdks:java:container:java8:copyJavaThirdPartyLicenses NO-SOURCE
file or directory
'/home/rebo/git/src/github.com/apache/beam/sdks/java/container/build/build/target/third_party_licenses',
not found
Skipping task ':sdks:java:container:java8:copyJavaThirdPartyLicenses' as it
has no source files and no previous output files.
:sdks:java:container:java8:copyJavaThirdPartyLicenses (Thread[Execution worker
for ':',5,main]) completed. Took 0.0 secs.
:sdks:java:container:java8:dockerPrepare (Thread[Execution worker for
':',5,main]) started.}}
The job then fails to build the Dockerfile.
{{Step 13/18 : ADD target/third_party_licenses
/opt/apache/beam/third_party_licenses/
ADD failed: stat
/var/lib/docker/tmp/docker-builder213254890/target/third_party_licenses: no
such file or directory}}
However, a subsequent run succeeds but still produces the same error:
{{> Task :sdks:java:container:java8:copyJavaThirdPartyLicenses NO-SOURCE
file or directory
'/home/rebo/git/src/github.com/apache/beam/sdks/java/container/build/build/target/third_party_licenses',
not found
Skipping task ':sdks:java:container:java8:copyJavaThirdPartyLicenses' as it
has no source files and no previous output files.
:sdks:java:container:java8:copyJavaThirdPartyLicenses (Thread[Execution worker
for ':' Thread 3,5,main]) completed. Took 0.0 secs.
:sdks:java:container:java8:copyLicenses (Thread[Execution worker for ':'
Thread 3,5,main]) started.}}
It's not clear why the 2nd run succeeds at all, or how the license files are
making it the second time around.
It looks like things should work the first time, if we clear out the redundant
/build/ in the copy line, in common.gradle.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)