Skip to content
This repository was archived by the owner on Jan 17, 2024. It is now read-only.

Commit 0815a11

Browse files
authored
Merge pull request #19 from raydouglass/container-name
[REVIEW] Set container name to BUILD_TAG
2 parents 732131d + cca5d71 commit 0815a11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/gpuopenanalytics/jenkins/remotedocker/DockerLauncher.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ private ArgumentListBuilder getlaunchArgs(DockerConfiguration config,
159159
//TODO Set name? Maybe with build.toString().replaceAll("^\\w", "_")
160160
ArgumentListBuilder args = new ArgumentListBuilder()
161161
.add("run", "-t", "-d")
162+
.add("--name", Utils.resolveVariables(this, "$BUILD_TAG"))
162163
.add("--workdir", workspacePath)
163164
//Add bridge network for internet access
164165
.add("--network", "bridge");

0 commit comments

Comments
 (0)