[infra] parent dir tweaks

This commit is contained in:
Mike Aizatsky 2016-08-01 14:46:50 -07:00
parent 391bbdac51
commit 1b0948faa5
1 changed files with 2 additions and 3 deletions

View File

@ -60,10 +60,9 @@ def call(body) {
} }
if (dockerContextDir == null) { if (dockerContextDir == null) {
dockerContextDir = new File(workspace, dockerfile) dockerContextDir = new File(dockerfile)
.getAbsoluteFile()
.getParentFile() .getParentFile()
.getAbsolutePath(); .getPath();
} }
sh "docker build -t $dockerTag -f $dockerfile $dockerContextDir" sh "docker build -t $dockerTag -f $dockerfile $dockerContextDir"