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

Commit cca5d71

Browse files
committed
FEA Set container name to BUILD_TAG
1 parent 732131d commit cca5d71

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)