Skip to content
Permalink
Browse files
JENKINS-33063
  • Loading branch information
vfarcic committed Mar 7, 2016
1 parent ab5c279 commit 6a49c2225aa1d405179343a449590f84628a99da
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/resources/org/jenkinsci/plugins/docker/workflow/Docker.groovy
@@ -121,9 +121,9 @@ class Docker implements Serializable {
}
}

public Container run(String args = '') {
public Container run(String args = '', String command = "") {
docker.node {
docker.script.sh "docker run -d${args != '' ? ' ' + args : ''} ${id} > .container"
docker.script.sh "docker run -d${args != '' ? ' ' + args : ''} ${id} ${command} > .container"
def container = docker.script.readFile('.container').trim()
docker.script.dockerFingerprintRun containerId: container, toolName: docker.script.env.DOCKER_TOOL_NAME
new Container(docker, container)

0 comments on commit 6a49c22

Please sign in to comment.