Skip to content

Commit

Permalink
[JENKINS-32861] use FilePath.child for remote
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeloof committed Feb 17, 2016
1 parent 149c422 commit 58c931e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ public String prepareDockerImage(Docker docker, AbstractBuild build, TaskListene
String expandedContextPath = build.getEnvironment(listener).expand(contextPath);
FilePath filePath = build.getWorkspace().child(expandedContextPath);

File dockerFile = new File(filePath.getRemote(), "Dockerfile");
FilePath dockerFile = filePath.child(getDockerfile());
if (!dockerFile.exists()) {
listener.getLogger().println("Your project is missing a Dockerfile");
throw new InterruptedException("Your project is missing a Dockerfile");
Expand Down

0 comments on commit 58c931e

Please sign in to comment.