From cca5d71cacbf8b6fba73ba0f20eeae7893e69779 Mon Sep 17 00:00:00 2001 From: Raymond Douglass Date: Thu, 24 Oct 2019 13:45:31 -0400 Subject: [PATCH] FEA Set container name to BUILD_TAG --- .../gpuopenanalytics/jenkins/remotedocker/DockerLauncher.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gpuopenanalytics/jenkins/remotedocker/DockerLauncher.java b/src/main/java/com/gpuopenanalytics/jenkins/remotedocker/DockerLauncher.java index f6cec73..09dc007 100644 --- a/src/main/java/com/gpuopenanalytics/jenkins/remotedocker/DockerLauncher.java +++ b/src/main/java/com/gpuopenanalytics/jenkins/remotedocker/DockerLauncher.java @@ -159,6 +159,7 @@ private ArgumentListBuilder getlaunchArgs(DockerConfiguration config, //TODO Set name? Maybe with build.toString().replaceAll("^\\w", "_") ArgumentListBuilder args = new ArgumentListBuilder() .add("run", "-t", "-d") + .add("--name", Utils.resolveVariables(this, "$BUILD_TAG")) .add("--workdir", workspacePath) //Add bridge network for internet access .add("--network", "bridge");