Skip to content

Commit 360c8be

Browse files
authored
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
1 parent e174b3f commit 360c8be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distribution/docker/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ check.dependsOn integTest
151151

152152
void addBuildDockerImage(final boolean oss, final boolean ubi) {
153153
final Task buildDockerImageTask = task(taskName("build", oss, ubi, "DockerImage"), type: LoggedExec) {
154-
dependsOn taskName("copy", oss, ubi, "DockerContext")
154+
inputs.files(tasks.named(taskName("copy", oss, ubi, "DockerContext")))
155155
List<String> tags
156156
if (oss) {
157157
tags = [

0 commit comments

Comments
 (0)