Browse Source

Fix task input for docker build (#49814)

The docker build task depends on the docker context being built, but it
was not explicitly setup as an input. This commit adds the task as an
input to the docker build.

relates #49613
Ryan Ernst 5 years ago
parent
commit
360c8be049
1 changed files with 1 additions and 1 deletions
  1. 1 1
      distribution/docker/build.gradle

+ 1 - 1
distribution/docker/build.gradle

@@ -151,7 +151,7 @@ check.dependsOn integTest
 
 void addBuildDockerImage(final boolean oss, final boolean ubi) {
   final Task buildDockerImageTask = task(taskName("build", oss, ubi, "DockerImage"), type: LoggedExec) {
-    dependsOn taskName("copy", oss, ubi, "DockerContext")
+    inputs.files(tasks.named(taskName("copy", oss, ubi, "DockerContext")))
     List<String> tags
     if (oss) {
       tags = [